Xen Project Q&A Forum: First Line Help for Simple Questions

This is your chance to ask questions and provide answers about basic use of the Xen Project software. For debugging problems and for more complex issues, consider using the xen-users mailing list instead. You can find information about xen-users under "HELP | Mailing Lists" in the navigation bar above.

Issue

Cannot boot (hvm or pvm) from ISO CD image

posted in General
Monday, August 07 2017, 08:51 PM
Jeroen V
Jeroen V
Offline
0
Hi,

About a month ago I successfully installed a turnkey-linux instance in xen 4.8 by booting the iso as hvm (with a minimal config file) and installing. After installation I can boot as pvm without problems.

Now I cannot seem to achieve the same anymore, the log
 /var/log/xen/qemu-dm-tst2.hvm.log
says:
xen be: vkbd-0: xen be: vkbd-0: initialise() failed
initialise() failed
xen be: vkbd-0: xen be: vkbd-0: initialise() failed
initialise() failed
xen be: vkbd-0: xen be: vkbd-0: initialise() failed
initialise() failed


My config looks like this:
# temporary hvm settings for first boot
builder = "hvm"
# device_model_version = "qemu-xen"

# pvm settings
name = "tst2.hvm"
# kernel = "/usr/lib/grub-xen/grub-x86_64-xen.bin"
memory = 768
maxmem = 1024
vcpus = 1
vif = [ 'bridge=xenbr0,mac=00:16:3E:7D:3D:85' ]

disk = [ 'phy:/dev/xen_home/tst2,xvda,rw','file:/DATA/NoBackup/Downloads/Software/turnkey-lamp-14.2-jessie-amd64.iso,xvdb:cdrom,r' ]
boot = "dc"

sdl = 0
stdvga = 1
# videoram=16
vnc = 1

vfb = [ 'type=vnc' ]
vnclisten = "0.0.0.0"
vncpasswd = "s3cr3t"



As a second option I tried to directly boot the iso as pvm by copying the initrd and kernel from the iso to the dom0 using this config:
name = "tklamp.pvm"
# kernel = "/usr/lib/grub-xen/grub-x86_64-xen.bin"
# ramdisk = "/boot/xen-4.8-amd64.gz"
kernel = "/var/local/lib/xen/tklamp/vmlinuz"
ramdisk = "/var/local/lib/xen/tklamp/initrd.gz"
memory = 768
maxmem = 1024
vcpus = 1
vif = [ 'bridge=xenbr0,mac=00:16:3E:7D:3D:85' ]
disk = [ '/dev/xen_home/tklamp,raw,sda,rw','/DATA/NoBackup/Downloads/Software/turnkey-lamp-14.2-jessie-amd64.iso,,sdb,cdrom,r' ]
...


but after booting the initrd I'm stuck at the (initramfs) prompt because the root fs cannot be found.

Any ideas what's going on? TIA
Responses (1)
  • Accepted Answer

    Jeroen V
    Jeroen V
    Offline
    Tuesday, August 08 2017, 09:54 PM - #permalink
    0
    Ok, found the problem:

    In fact the error in the log was not fatal, the problem was that the -c switch didn't give me a console, so I had to use a vnc session for the hvm install part. So the VM was in fact not hanging, I just didn't see anything.

    Another thing which I apparently missed was that I had to connect to the IP of the dom0 for the VNC session, whereas I tried to connect to the IP of the domU instead (without luck).

    So now installing a TKL appliance has become as easy (again) as:

    1. booting from the ISO,
    2. install the system on an empty attached lv,
    3. shutdown,
    4. change the xen cfg to pvm style
    5. boot


    The only problem is that the installation didn't configure a root password, so I had to reset it with init=/bin/bash in the kernel cmdline.
    The reply is currently minimized Show
Your Reply