Archive for September, 2010

virt-install command for fedora

virt-install -p -r 1024 -n fedora14 -f /dev/domU/fedora14 –location -x ks=”http://chaotic/~kyl191/ks.php?hostname=helium”
-p => paravirtualized
-r => 1024MB of RAM
-n => Name of the new VM
-f => file/location to install to (I believe it’s supposed to be an image file, but an LVM partition works just as well)
–location => Straightforward, location to install from.
-x => extra arguments to pass to installer (In this case, ks refers to kickstart, the Redhat installation scripter. The file it’s referring to is my modified installation file.)

No Comments

MAC Address changes when using virt-install

The MAC address seems to change after you use virt-install, which leads to the ifup script complaining that the hardware address doesn’t match what’s in the ifcfg-eth0 file. However, after the domain is defined, the MAC address seems to stick, so the fix is to change the ifcfg-eth0 to reflect the new MAC address.

No Comments

Setting the hostname in Fedora 13

Should be simple, the number of times I’ve done it, but I’ve ended up searching google for how to do so. Again.

vim /etc/sysconfig/network, add “HOSTNAME=newhost” or change it.

Also, vi /etc/sysconfig/network-scripts/ifcfg-eth0, add “DHCP_HOSTNAME=newhost” for the hostname to be sent with DHCP requests. Have to find out if setting up the hostname with the kickstart file works or not. (ie. network –device eth0 –bootproto dhcp –hostname %name%)

No Comments

'Hardware' clocks in Fedora 13/14 VMs

Disable the hardware clock
The Xen domU will use the host’s clock, so we replace hwclock with an empty shell script

echo exit 0 > /sbin/hwclock


No Comments

opensolaris domU on a Fedora 13 dom0

Has been nothing but a pain. Seriously.

Tried . Close, but no cigar. Installing goes fine, but switching from HVM to PV kills it. looks good, but I have no idea where he’s getting the kernel and ramdisk from.

I’ll be trying, and over the weekend from a clean slate, so hopefully I can get something up and running properly.

(At least I got all the network bugs solved – xen’s network bridge kept on fouling on *something*. Manually typing in some of the ip commands and swapping to network instead of NetworkManager worked. Still not sure which fixed the problem, but I’m being it’s the change in network setup. network came up fine except that dhclient didn’t run, so I’ll be adding networking=dhcp to the ifcfg-eth0 script if it doesn’t come up when booting again.)

No Comments

Gotchas when installing a HVM

Using the Nexenta 3 release to get a better userland system than opensolaris. It’s based off OpenSolaris build 134, and still comes with ZFS, so it fits my needs perfectly. Since some customization has to be done first, it has to be installed in HVM mode. Which… has a few gotchas.

1. Only 4 devices are supported. I’m planning to use it a NAS, so I have the root drive (LVM-based) +3 2TB drives. Adding them + the install file gets a “cannot boot error”, which I found out was because qemu seems to only support 4 devices – I’m guessing in part because it has 2 IDE channels, and each channel can only take 2 devices.

2. Devices have to be named hd[a-d]. I tried leaving the file mentioned above as hde:cdrom. Got “No bootable devices found.” Changed it to read hdb:cdrom, and it’s fixed.

No Comments

Xen 4 on Fedora 13

Have decided to go with Fedora 13 for my Xen install. Reaons being:

VMWare and XenServer don’t support USB Passthrough, which I want to run one of the VMs as a home server, and will pass 2 printers through to it.

CentOS is running off an old kernel and Xen version. If I want the latest and greatest, I’ll have to hack something together, so might as well use Fedora.

No Comments

Setting the timezone from the shell

In Fedora 13 (and likely others), use cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime && ntpd -q, where $timezone is your timezone. (The ntpd -q is likely unnecessary, but, eh. It’ll force an update to the system time.)

No Comments

CentOS 5.5 on an ASUS Motherboard

Trying a new VM host that uses an ASUS motherboard. Unfortunately, old version of kernel in CentOS 5.5 means that no networking ever comes up. Specifically, the Atheros L1 Gigabit Ethernet driver isn’t in such an old version of the kernel. (Only came in in 2.6.21, centOS 5.5 is 2.6.18)

Fix: Going by the page here: , grab and rpm -ivh it after somehow getting it to the new system – I just used a thumbdrive.