Saturday, October 06, 2007

Xen and Fedora 7

I've had problems virtualizing Fedora 7 under F7. Seems strange, nothing should be easier. Here's an example:
[root@adama ~]# virt-install -n apollo02
  -f /dev/vg0/xen-apollo01 --nographics -p
  -l ftp://192.168.69.13/f7-64 -r 520
  -x "ks=ftp://192.168.69.13/ks/apollo.ks"
Starting install...
  ... output truncated ...
Write protecting the kernel read-only data: 938k

And the guest locks. Or does it? In reality, the guest is running the kickstart install but the console can not connect. If we try xm console X, we get nothing. If we try to connect through virt-manager, we get nothing. But, as long as the kickstart is fully automated, the install will work.

Let's try this:
[root@adama ~]# virt-install -n fc6vm
  -f /dev/vg0/xen-apollo01 --nographics -p
  -l ftp://192.168.69.13/fc6-64 -r 520
  -x "ks=ftp://192.168.69.13/ks/fc6vm.ks"
Starting install...
  ... output truncated ..
Welcome to Fedora Core

The console launches, and everything works as expected.

Interesting. So... Whats different between the was F7 boots and FC-6? One thing I had noticed was that F-7 boots in the XGA mode (43x80 vs 25x80). I try adding text to the -x option, without luck. Then I tried this:
[root@adama ~]# virt-install -n apollo02
  -f /dev/vg0/xen-apollo01 --nographics -p
  -l ftp://192.168.69.13/f7-64 -r 520
  -x "ks=ftp://192.168.69.13/ks/apollo.ks console=vga"
Starting install...
  ... output truncated ..
Welcome to Fedora

Much to my elation, it worked. One more thing to check, however.
Stay tuned.

No comments:

Post a Comment