Patch virt-install replacing launching vncviewer by virsh serial console put virt-install in work in vnc console mode. Another option is to run virt-install with –noautoconsole option , followed by “virsh console VF12 & > /dev/null &”, “vncviewer localhost:0″
--- virt-install 2009-12-26 19:12:09.624200907 +0300
+++ virt-install.work 2009-12-26 19:12:09.624388189 +0300
@@ -557,8 +557,8 @@ def vncviewer_console(dom):
child = os.fork()
if not child:
- os.execvp("/usr/bin/vncviewer", ["/usr/bin/vncviewer",
- "%s:%d" %(vnchost, vncport) ])
+ os.execvp("/usr/bin/virsh",
+ ["/usr/bin/virsh", "console", "%s" %(dom.ID(),)])
os._exit(1)
return child
*************************
Now start virt-install :-
*************************
root@Opensolaris130:~# virt-install –paravirt –name VF12S –ram 1024 –vnc –os-type=linux –os-variant=fedora11 –network bridge -f /dev/zvol/dsk/tank2/guest-pv -l http://192.168.1.33/f12 –debug
Sat, 26 Dec 2009 19:46:48 DEBUG Using libvirt URI ‘xen’
Sat, 26 Dec 2009 19:46:48 DEBUG Requesting virt method ‘xen’
Sat, 26 Dec 2009 19:46:48 DEBUG Received virt method ‘xen’
Sat, 26 Dec 2009 19:46:48 DEBUG Hypervisor name is ‘xen’
Sat, 26 Dec 2009 19:46:48 DEBUG Setting size for existing storage to ’22.0′
Sat, 26 Dec 2009 19:46:48 DEBUG Detected storage as type ‘block’
Sat, 26 Dec 2009 19:46:48 DEBUG Could not open “/etc/sysconfig/keyboard” [Errno 2] No such file or directory: ‘/etc/sysconfig/keyboard’
Sat, 26 Dec 2009 19:46:48 DEBUG Could not open “/etc/X11/xorg.conf”: [Errno 2] No such file or directory: ‘/etc/X11/xorg.conf’
Sat, 26 Dec 2009 19:46:48 DEBUG Did not parse any usable keymapping.
Sat, 26 Dec 2009 19:46:48 DEBUG DistroInstaller location is a network source.
Starting install…
Sat, 26 Dec 2009 19:46:48 DEBUG Attempting to detect distro:
Sat, 26 Dec 2009 19:46:48 DEBUG Fetching URI: http://192.168.1.33/f12/.treeinfo
Sat, 26 Dec 2009 19:46:48 DEBUG Saved file to /var/tmp/virtinst-.treeinfo.6draB9
Retrieving file .treeinfo 100% |=========================| 1.2 kB 00:00
Sat, 26 Dec 2009 19:46:48 DEBUG Fetching URI: http://192.168.1.33/f12/images/pxeboot/vmlinuz
Sat, 26 Dec 2009 19:46:48 DEBUG Saved file to /var/tmp/virtinst-vmlinuz.eeo8aM
Retrieving file vmlinuz.. 100% |=========================| 3.3 MB 00:00
Sat, 26 Dec 2009 19:46:48 DEBUG Fetching URI: http://192.168.1.33/f12/images/pxeboot/initrd.img
Sat, 26 Dec 2009 19:46:48 DEBUG Saved file to /var/tmp/virtinst-initrd.img.opQ7ah
Retrieving file initrd.im 100% |=========================| 22 MB 00:00
Sat, 26 Dec 2009 19:46:48 DEBUG Creating guest from:
VF12S
1048576
1048576
e42dd5e0-f34e-8ea1-cfa6-2786d08dc38c
linux
/var/tmp/virtinst-vmlinuz.eeo8aM
/var/tmp/virtinst-initrd.img.opQ7ah
method=http://192.168.1.33/f12
destroy
destroy
destroy
linux
fedora11
1
Creating domain… 0 B 00:01
Sat, 26 Dec 2009 19:46:50 DEBUG Created guest, looking to see if it is running
Sat, 26 Dec 2009 19:46:50 DEBUG Launching console callback
Sat, 26 Dec 2009 19:46:50 DEBUG VNC Port: 5900; VNC host: localhost
Sat, 26 Dec 2009 19:46:50 DEBUG Saving XML boot config:
VF12S
1048576
1048576
e42dd5e0-f34e-8ea1-cfa6-2786d08dc38c
/usr/lib/xen/bin/pygrub
destroy
restart
restart
linux
fedora11
1
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.31.5-127.fc12.x86_64 (mockbuild@x86-4.fedora.phx.redhat.com) (gcc version 4.4.2 20091027 (Red Hat 4.4.2-7) (GCC) ) #1 SMP Sat Nov 7 21:11:14 EST 2009
Command line: method=http://192.168.1.33/f12
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
Centaur CentaurHauls
ACPI in unprivileged domain disabled
BIOS-provided physical RAM map:
Xen: 0000000000000000 – 00000000000a0000 (usable)
Xen: 00000000000a0000 – 0000000000100000 (reserved)
Xen: 0000000000100000 – 0000000040000000 (usable)
DMI not present or invalid.
last_pfn = 0×40000 max_arch_pfn = 0×400000000
init_memory_mapping: 0000000000000000-0000000040000000
RAMDISK: 019ce000 – 04498000
No NUMA configuration found
Faking a node at 0000000000000000-0000000040000000
Bootmem setup node 0 0000000000000000-0000000040000000
NODE_DATA [0000000000008000 - 000000000001dfff]
bootmap [000000000001e000 - 0000000000025fff] pages 8
(7 early reserv69b000]
#6 [0000100000 - 00002d8000] PGTABLE ==> [0000100000 - 00002d8000]
Zone PFN ranges:
DMA 0×00000000 -> 0×00001000
DMA32 0×00001000 -> 0×00100000
Normal 0×00100000 -> 0×00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0×00000000 -> 0x000000a0
0: 0×00000100 -> 0×00040000
SMP: Allowing 1 CPUs, 0 hotplug CPUs
No local APIC present
APIC: disable apic facility
PM: Registered nosave memory: 00000000000a0000 – 000000000010000bio: create slab at 0
ACPI: Interpreter disabled.
xen_balloon: Initialising balloon driver.
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
pnp: PnP ACPI: disabled
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs…
Freeing initrd memory: 43816k freed
platform rtc_cmos: registered platform RTC device (no PNP device found)
audit: initializing netlink socket (disabled)
type=2000 audit(1261846010.279:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 2133
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
Console: switching to colour frame buffer device 100×37
console [tty0] enabled
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input0
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: No PS/2 controller found. Probing ports directly.
mice: PS/2 mouse device common for all mice
input: Xen Virtual Keyboard as /devices/virtual/input/input1
input: Xen Virtual Pointer as /devices/virtual/input/input2
rtc_cmos: probe of rtc_cmos failed with error -16
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack modul
Issuing ( via different terminal session)
# vncviewer localhost:0
starts F12 PV DomU install


Moreover VNC console stays alive at DomU reboot and final creating :-


******************************************************
Sequence of commands for unpatched virt-install:-
*******************************************************
root@Opensolaris130:~# virt-install –paravirt –name VF12A –ram 1024 –vnc –os-type=linux –os-variant=fedora11 –network bridge -f /dev/zvol/dsk/tank3/guest-pv -l http://192.168.1.33/f12 –noautoconsole –debug
Sun, 27 Dec 2009 09:19:36 DEBUG Using libvirt URI ‘xen’
Sun, 27 Dec 2009 09:19:36 DEBUG Requesting virt method ‘xen’
Sun, 27 Dec 2009 09:19:36 DEBUG Received virt method ‘xen’
Sun, 27 Dec 2009 09:19:36 DEBUG Hypervisor name is ‘xen’
Sun, 27 Dec 2009 09:19:36 DEBUG Setting size for existing storage to ’22.0′
Sun, 27 Dec 2009 09:19:36 DEBUG Detected storage as type ‘block’
Sun, 27 Dec 2009 09:19:37 DEBUG Could not open “/etc/sysconfig/keyboard” [Errno 2] No such file or directory: ‘/etc/sysconfig/keyboard’
Sun, 27 Dec 2009 09:19:37 DEBUG Could not open “/etc/X11/xorg.conf”: [Errno 2] No such file or directory: ‘/etc/X11/xorg.conf’
Sun, 27 Dec 2009 09:19:37 DEBUG Did not parse any usable keymapping.
Sun, 27 Dec 2009 09:19:37 DEBUG DistroInstaller location is a network source.
Starting install…
Sun, 27 Dec 2009 09:19:37 DEBUG Attempting to detect distro:
Sun, 27 Dec 2009 09:19:37 DEBUG Fetching URI: http://192.168.1.33/f12/.treeinfo
Sun, 27 Dec 2009 09:19:37 DEBUG Saved file to /var/tmp/virtinst-.treeinfo.A2_hjY
Retrieving file .treeinfo 100% |=========================| 1.2 kB 00:00
Sun, 27 Dec 2009 09:19:37 DEBUG Fetching URI: http://192.168.1.33/f12/images/pxeboot/vmlinuz
Sun, 27 Dec 2009 09:19:37 DEBUG Saved file to /var/tmp/virtinst-vmlinuz.ECKRIB
Retrieving file vmlinuz.. 100% |=========================| 3.3 MB 00:00
Sun, 27 Dec 2009 09:19:37 DEBUG Fetching URI: http://192.168.1.33/f12/images/pxeboot/initrd.img
Sun, 27 Dec 2009 09:19:37 DEBUG Saved file to /var/tmp/virtinst-initrd.img.Yelv8t
Retrieving file initrd.im 100% |=========================| 22 MB 00:00
Sun, 27 Dec 2009 09:19:37 DEBUG Creating guest from:
VF12A
1048576
1048576
94ecb997-16f2-468e-04db-69936ad25469
linux
/var/tmp/virtinst-vmlinuz.ECKRIB
/var/tmp/virtinst-initrd.img.Yelv8t
method=http://192.168.1.33/f12
destroy
destroy
destroy
linux
fedora11
1
Creating domain… 0 B 00:01
Sun, 27 Dec 2009 09:19:38 DEBUG Created guest, looking to see if it is running
Sun, 27 Dec 2009 09:19:38 DEBUG Saving XML boot config:
VF12A
1048576
1048576
94ecb997-16f2-468e-04db-69936ad25469
/usr/lib/xen/bin/pygrub
destroy
restart
restart
linux
fedora11
1
Sun, 27 Dec 2009 09:19:38 DEBUG Removing /var/tmp/virtinst-vmlinuz.ECKRIB
Sun, 27 Dec 2009 09:19:38 DEBUG Removing /var/tmp/virtinst-initrd.img.Yelv8t
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
root@Opensolaris130:~# virsh console VF12A & > /dev/null &
[1] 1223
[2] 1224
[2] Done > /dev/null
root@Opensolaris130:~# vncviewer localhost:0
TigerVNC Viewer for X version 1.0.0
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.
Sun Dec 27 09:20:35 2009
CConn: connected to host localhost port 5900
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
TXImage: Using default colormap and visual, TrueColor, depth 24.
CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
CConn: Using Tight encoding