Archive for September, 2010

virt-install command for fedora

virt-install -p -r 1024 -n fedora14 -f /dev/domU/fedora14 –location ftp.jaist.ac.jp/pub/Linux/Fedora/development/14/x86_64/os/ -x ks=”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 […]

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 […]

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 (from blog.jphoude.qc.ca/2007/10/26/centos-5-xen-images-part-1/)

No Comments

opensolaris domU on a Fedora 13 dom0

Has been nothing but a pain. Seriously. Tried justindthomas.wordpress.com/2009/04/03/installing-nexentacp-2-rc1-on-xenserver-5/ . Close, but no cigar. Installing goes fine, but switching from HVM to PV kills it. bderzhavets.wordpress.com/2009/03/20/pygrub-install-opensolaris-200811-at-xen-unstable-dom0-with-2629-rc7-pvops-enabled-kernel/ looks good, but I have no idea where he’s getting the kernel and ramdisk from. I’ll be trying wiki.tardis.ed.ac.uk/index.php/OpenSolaris_Xen_domU, blogs.sun.com/levon/entry/opensolaris_2008_11_guest_domain and blogs.sun.com/levon/entry/opensolaris_2009_06_guest_domain over the weekend from a clean slate, […]

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 […]

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 […]

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 […]

2 Comments