Two nics on HVM
by Jens Ahrens
Hello everybody,
I'm using FC7 and my server (IntelXeonQuad 64bit) provides 2 NICs. With
virsh-install I installed a (32bit RHEL3) HVM.
Until here everything runs fine.
When installing FC7, NIC1(eth0) got a public IP and NIC2(eth1) got a
private one.
When installing the HVM (RHEL3) only one NIC(eth0) exists, which got a
public IP.
The problem is that I also want the HVM to have a second NIC connected
to my private network (as in Dom0).
By default only one bridge (virbr0) is created.
brctl show gives:
eth0 8000.003048322dea no vif3.0
tap0
peth0
virbr0 8000.000000000000 no
How can I create a second one for (p)eth1 ?
By the way where does tap0 come from and what is it good for?
Thanks for any help.
Jens
16 years, 3 months
FC8 (x86_64) host FC8 new virtual system install hangs
by Ted Toth
I'm using the Virtual Machine Manager to create a new virtual system. I
put the anaconda tree off of the DVD on an ftp server and point to it. I
allocate 500M of memory and 20G of disk in a file. The anaconda install
seems to go along fine until it starts to install packages and then it
hangs. Has anyone else experienced this? Are there any tricks to getting
this to work?
16 years, 3 months
KVM: unhandled exception
by John Summerfield
[root@potoroo ~]# /usr/bin/qemu-kvm -M pc -m 128 -smp 1 -monitor pty
-no-acpi -boot c -hda /var/lib/xen/images/rto-test.img -net
nic,macaddr=00:16:3e:31:8a:8f,vlan=0 -net tap,fd=13,script=,vlan=0 -usb
-usbdevice tablet -vnc 0.0.0.0:0
char device redirected to /dev/pts/35
unhandled vm exit: 0x9
rax 000000000000001f rbx 000000000003f530 rcx 00000000000000ff rdx
000000000000001f
rsi 0000000000000000 rdi 0000000000000063 rsp 000000000003f40c rbp
000000000003f458
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11
0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15
0000000000000000
rip 000000008051ecc3 rflags 00010246
cs 0008 (00000000/ffffffff p 1 dpl 0 db 1 s 1 type b l 0 g 1 avl 0)
ds 0023 (00000000/ffffffff p 1 dpl 3 db 1 s 1 type 3 l 0 g 1 avl 0)
es 0023 (00000000/ffffffff p 1 dpl 3 db 1 s 1 type 3 l 0 g 1 avl 0)
ss 0010 (00000000/ffffffff p 1 dpl 0 db 1 s 1 type 3 l 0 g 1 avl 0)
fs 0030 (ffdff000/00001fff p 1 dpl 0 db 1 s 1 type 3 l 0 g 1 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0028 (80042000/000020ab p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
gdt 8003f000/3ff
idt 8003f400/7ff
cr0 e0000011 cr2 63 cr3 305000 cr4 20 cr8 0 efer 0
Aborted
[root@potoroo ~]#
I created the file /var/lib/xen/images/rto-test.img by installing
Windows XP to the point it reboots.
I then attached /var/lib/xen/images/rto-test.img to my Debian rescue
system, and copied /var/lib/xen/images/rto.img to it using ntfsclone.
This is the ntfsresize info on the file:
[root@potoroo ~]# ntfsresize --info /var/lib/xen/images/rto.img -f
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /var/lib/xen/images/rto.img
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 11999994368 bytes (12000 MB)
Current device size: 60011606528 bytes (60012 MB)
ERROR: This software has detected that the disk has at least 2 bad sectors.
****************************************************************************
* WARNING: The disk has bad sector. This means physical damage on the disk *
* surface caused by deterioration, manufacturing faults or other reason. *
* The reliability of the disk may stay stable or degrade fast. We suggest *
* making a full backup urgently by running 'ntfsclone --rescue ...' then *
* run 'chkdsk /f /r' on Windows and rebooot it TWICE! Then you can resize *
* NTFS safely by additionally using the --bad-sectors option of ntfsresize.*
****************************************************************************
[root@potoroo ~]#
Note that the bad sectors are a legacy of the install to the original,
long deceased drive. I've not found a way to clear it, the system runs
ine and the bad sectors are not relevant to the problem.
This is the image I'm trying to boot:
[root@potoroo ~]# parted /var/lib/xen/images/rto-test.img print
Model: (file)
Disk /var/lib/xen/images/rto-test.img: 14.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 14.7GB 14.7GB primary ntfs boot
[root@potoroo ~]#
the MBR is fine:
[root@potoroo ~]# cat /var/lib/xen/images/rto-test.img | xxd | head -32
0000000: 33c0 8ed0 bc00 7cfb 5007 501f fcbe 1b7c 3.....|.P.P....|
0000010: bf1b 0650 57b9 e501 f3a4 cbbd be07 b104 ...PW...........
0000020: 386e 007c 0975 1383 c510 e2f4 cd18 8bf5 8n.|.u..........
0000030: 83c6 1049 7419 382c 74f6 a0b5 07b4 078b ...It.8,t.......
0000040: f0ac 3c00 74fc bb07 00b4 0ecd 10eb f288 ..<.t...........
0000050: 4e10 e846 0073 2afe 4610 807e 040b 740b N..F.s*.F..~..t.
0000060: 807e 040c 7405 a0b6 0775 d280 4602 0683 .~..t....u..F...
0000070: 4608 0683 560a 00e8 2100 7305 a0b6 07eb F...V...!.s.....
0000080: bc81 3efe 7d55 aa74 0b80 7e10 0074 c8a0 ..>.}U.t..~..t..
0000090: b707 eba9 8bfc 1e57 8bf5 cbbf 0500 8a56 .......W.......V
00000a0: 00b4 08cd 1372 238a c124 3f98 8ade 8afc .....r#..$?.....
00000b0: 43f7 e38b d186 d6b1 06d2 ee42 f7e2 3956 C..........B..9V
00000c0: 0a77 2372 0539 4608 731c b801 02bb 007c .w#r.9F.s......|
00000d0: 8b4e 028b 5600 cd13 7351 4f74 4e32 e48a .N..V...sQOtN2..
00000e0: 5600 cd13 ebe4 8a56 0060 bbaa 55b4 41cd V......V.`..U.A.
00000f0: 1372 3681 fb55 aa75 30f6 c101 742b 6160 .r6..U.u0...t+a`
0000100: 6a00 6a00 ff76 0aff 7608 6a00 6800 7c6a j.j..v..v.j.h.|j
0000110: 016a 10b4 428b f4cd 1361 6173 0e4f 740b .j..B....aas.Ot.
0000120: 32e4 8a56 00cd 13eb d661 f9c3 496e 7661 2..V.....a..Inva
0000130: 6c69 6420 7061 7274 6974 696f 6e20 7461 lid partition ta
0000140: 626c 6500 4572 726f 7220 6c6f 6164 696e ble.Error loadin
0000150: 6720 6f70 6572 6174 696e 6720 7379 7374 g operating syst
0000160: 656d 004d 6973 7369 6e67 206f 7065 7261 em.Missing opera
0000170: 7469 6e67 2073 7973 7465 6d00 0000 0000 ting system.....
0000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001b0: 0000 0000 002c 4463 857a 857a 0000 8001 .....,Dc.z.z....
00001c0: 0100 07fe ffff 3f00 0000 f811 b501 0000 ......?.........
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U.
[root@potoroo ~]#
Oh, in case it matters:
[root@potoroo ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1596.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3725.73
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
etc
and
[root@potoroo ~]# uname -a
Linux potoroo.demo.lan 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:36 EST
2007 x86_64 x86_64 x86_64 GNU/Linux
What is wrong, and what do I need to do to fix it?
--
Cheers
John
-- spambait
1aaaaaaa(a)coco.merseine.nu Z1aaaaaaa(a)coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
16 years, 3 months
xen is not able to detect windows cd
by srinivas d
Sir,
Subject :{1. Not able to load windows on xen enabled
kernel of RHEL 5
2.Able to load windows on xen enabled
kernel ON fedora 8 only on paralvirtulization mode.
3. Able to load RHEL 5 (DOM 1) on xen enabled
kernel ON RHEL 5 (DOM 0) on Fullvirtualation mode.}
I am trying to load window 2000 SERVER Enterprise,
choosing Full Virtualized and after detecting hardware
at Windows Setup it is getting stuck.
With following message at the bottom "setup is
starting windows"
Can you help in this regard.
NOTE WITH RHEL 5 DVD I AM ABLE TO LOAD DOM 1
regards,
MBOARD IS gigbyte and vt is enabled in bios and
the processor is inter core 2 due which supports VT.
D.Srinivas
D.Srinivas
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
16 years, 3 months
xm create -c recovery fails
by John Summerfield
I'm running F8, xen-3.1.2-1.fc8, 2.6.21.7-2890.fc9xen.
I have a xen configuration which contains this stanza:
disk = [ 'file:/var/lib/xen/images/recovery.img,hda,w'
, 'file:/var/lib/xen/images/WindowsXP.img,hdb,w'
# , ',hdc:cdrom,r'
, 'phy:hda,ioemu:hdd,r'
]
If I comment out the line containing "'phy:hda,ioemu:hdd,r' then the xm create
line works and the guest starts up and runs fine. Whether I have "ioemu"
doesn't make any obvious difference, google suggested it.
With the stanza as above, it fails:
[root@potoroo ~]# time xm create -c recovery
Using config file "/etc/xen/recovery".
Error: Device 5696 (vbd) could not be connected. Hotplug scripts not working.
real 1m44.750s
user 0m0.080s
sys 0m0.067s
[root@potoroo ~]#
The only other thing I see is the VNC console opens, but it displays with a
white background.
These are the messages logged to xend.log:
[2008-01-18 11:00:24 2652] INFO (image:129) buildDomain os=hvm dom=27 vcpus=1
[2008-01-18 11:00:24 2652] INFO (XendDomainInfo:1458) createDevice: vfb :
{'vncunused': 1, 'other_config': {'vncunused':
1}, 'uuid': '6c9425f6-7800-4325-bcd7-b917ce2f8955'}
[2008-01-18 11:00:24 2652] INFO (XendDomainInfo:1458) createDevice: vbd :
{'uuid': '0f4b1edf-a164-6b3a-ebd2-395532720861', 'bootable':
1, 'driver': 'paravirtualised', 'dev': 'hda', 'uname': 'file:/var/lib/xen/images/recovery.img', 'mode': 'w'}
[2008-01-18 11:00:24 2652] INFO (XendDomainInfo:1458) createDevice: vbd :
{'uuid': '5c84f484-c9df-f60d-ccec-9a4bf7e47e64', 'bootable':
0, 'driver': 'paravirtualised', 'dev': 'hdb', 'uname': 'file:/var/lib/xen/images/WindowsXP.img', 'mode': 'w'}
[2008-01-18 11:00:24 2652] INFO (XendDomainInfo:1458) createDevice: vbd :
{'uuid': 'f34d1d46-dd15-7572-6661-26570af507a7', 'bootable':
0, 'driver': 'ioemu', 'dev': 'ioemu:hdd', 'uname': 'phy:hda', 'mode': 'r'}
[2008-01-18 11:00:24 2652] INFO (XendDomainInfo:1458) createDevice: vif :
{'bridge': 'xenbr0', 'mac': '00:16:3e:33:b1:83', 'type': 'ioemu', 'uuid': 'b5fca1da-8850-0723-bf2e-edbf7635832e'}
[2008-01-18 11:00:24 2652] INFO (image:454) spawning device
models: /usr/lib64/xen/bin/qemu-dm
['/usr/lib64/xen/bin/qemu-dm', '-d', '27', '-vcpus', '1', '-boot', 'cd', '-soundhw', 'sb16', '-localtime', '-serial', 'pty', '-acpi', '-usb', '-usbdevice', 'tablet', '-domain-name', 'recovery', '-net', 'nic,vlan=1,macaddr=00:16:3e:33:b1:83,model=rtl8139', '-net', 'tap,vlan=1,bridge=xenbr0', '-vnc', '127.0.0.1:0', '-vncunused', '-vncviewer']
[2008-01-18 11:00:24 2652] INFO (image:458) device model pid: 29112
"recovery" is a Debian system, I created it under KVM and I've mentioned it
here before.
Here is the Xen configuration:
[root@potoroo xen]# cat /etc/xen/recovery | grep -Ev '^($|#)'
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 128
name = "recovery"
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 'file:/var/lib/xen/images/recovery.img,hda,w'
, 'file:/var/lib/xen/images/WindowsXP.img,hdb,w'
, 'phy:hda,ioemu:hdd,r'
]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="cd"
sdl=0
vnc=1
vncconsole=1
vncpasswd=''
stdvga=0
serial='pty'
soundhw='sb16'
localtime=1
usb=1
usbdevice='tablet'
[root@potoroo xen]#
16 years, 3 months
CPU management
by Augusto Castelan Carlson
Hi!
I will have servers with different CPU specification:
Quad core, dua core, one core.
Each core appears as one VCPU for xen?
How the management works when there is only one core, dual core and quad core?
Suppose that I have 2 guests and for the quad core processor I give 2
VCPU to the dom0 and one for each domU. How it is managed? If DomU
needs more CPU, it can use idle CPU from Dom0? If DomU is using idle
CPU from Dom0 and Dom0 starts to need CPU, it will have their slice
back?
Thanks in advance.
Regards,
--
Augusto Castelan Carlson
16 years, 3 months
where is XEN/VM networking defined?
by Fulko Hew
I've just started playing with virtualization on F8
and (amongst other things...) I'm having a hard time
figuring out:
a) what I need to do to get IP networking properly
working between VMs and the outside world.
b) where/what networking scripts/config files are VM
related, and that are run at system startup time,
or even VM startup time???
c) what are my options for VM-to-world networking?
d) what options/techniques does:
'System->Virtual Machine Manager' choose when
reconfig'ing the host system and defining how
the VM is started/connected.
I'm specifically interested in QEMU based VMs, because:
a) I don't have the hardware for KQEMU based VMs,
b) I haven't been able to figure out how to build
a XEN based VM either.
So when running my QEMU based VMs I'm (currently)
just booting a std kernel, not the XEN based kernel.
I've tried RTFM'ing and I've tried searching back a few
months on this list for clues, and haven't (yet) found
a description of the networking options, or how or what
I need to do to get it to work properly. Is there a
good HowTo somewhere?
TIA
Fulko
16 years, 3 months
virt* source
by John Summerfield
I've checked out the source virt*, but I cannot tell that it's newer
than I have.
The changelog for virt-manager suggests not.
Mercurial doesn't set file times to those on the server, so they reflect
when I checked it out rather than what's in the repo.
I planned to build from source and install to /usr/local, but this
suggests my idea is impractical:
virtinst--devel/virtinst/ParaVirtGuest.py: cmd =
["/usr/bin/virsh", "console", "%s" %(self.domain.ID(),)]
Surely, the location of executable components should not be hard-coded
in the source tree. I could live with it, grudgingly, if it was set at
configure time.
--
Cheers
John
-- spambait
1aaaaaaa(a)coco.merseine.nu Z1aaaaaaa(a)coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
16 years, 3 months