* Problem with Ubuntu Edgy and AMD X2
@ 2006-12-12 22:00 Franco Spinelli
[not found] ` <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Franco Spinelli @ 2006-12-12 22:00 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I am testing kvm on my new PC
MB is Asus M2NPV-VM with AMD CPU X2.
Installed OS is Ubuntu Edgy
I get kvm tarball and compiled it.
After installing gcc 3.4 I begin compile step
On Ubuntu Edgy there is no uuid/uuid.h file so I have grab it from tar
file at Ubuntu repository and put it in qemu subdir of kvm
On Ubuntu Edgy libuuid is in /lib/libuuid.so.1 so I make a link from it
to /lib/libuuid.so
After this, I got kvm compile and install.
I modprobe new module without any problem, create a disk image and
begint to install Windows XP on that.
At formatting step it take a long time (about 25 min for a 6Gb of disk)
with 90% of CPU and only very little i/o activity.At about 99%, exit
from install with a message "impossible to format".
Using dmesg command I geta lot of this error:
[17192500.496000] kvm: unhandled rdmsr: 0xc0000081
I have also tried a workaround necessary for Xen on my MB. In install
procedure of XP I hit F5 key and used "Standard PC" from menu choice,
without any change
Booting with -no-acpi flag an image file made by qemu (for first install
step) and by Xen (for install completition) boot and work but I am not
able to activate network connection. I find a network adapter, I can
configure it but I have no response pinging other LAN PC.
Regards
Franco Spinelli
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org>]
* Re: Problem with Ubuntu Edgy and AMD X2 [not found] ` <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org> @ 2006-12-13 8:26 ` Avi Kivity [not found] ` <457FB929.2030504-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 2006-12-13 9:32 ` Avi Kivity 1 sibling, 1 reply; 4+ messages in thread From: Avi Kivity @ 2006-12-13 8:26 UTC (permalink / raw) To: Franco Spinelli; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Franco Spinelli wrote: > I am testing kvm on my new PC > MB is Asus M2NPV-VM with AMD CPU X2. > Installed OS is Ubuntu Edgy > > I get kvm tarball and compiled it. > > After installing gcc 3.4 I begin compile step > > On Ubuntu Edgy there is no uuid/uuid.h file so I have grab it from tar > file at Ubuntu repository and put it in qemu subdir of kvm > > On Ubuntu Edgy libuuid is in /lib/libuuid.so.1 so I make a link from it > to /lib/libuuid.so > You're probably missing a package. On Fedora Core, e2fsprogs-devel contains both libuuid.so and uuid.h. > After this, I got kvm compile and install. > I modprobe new module without any problem, create a disk image and > begint to install Windows XP on that. > At formatting step it take a long time (about 25 min for a 6Gb of disk) > with 90% of CPU and only very little i/o activity.At about 99%, exit > from install with a message "impossible to format". > > Using dmesg command I geta lot of this error: > > [17192500.496000] kvm: unhandled rdmsr: 0xc0000081 > What cpu is this? A 32-bit Intel Core? > I have also tried a workaround necessary for Xen on my MB. In install > procedure of XP I hit F5 key and used "Standard PC" from menu choice, > without any change > > > Booting with -no-acpi flag an image file made by qemu (for first install > step) and by Xen (for install completition) boot and work but I am not > able to activate network connection. I find a network adapter, I can > configure it but I have no response pinging other LAN PC. > Unless you use ethernet bridging, ping will not work. TCP from the guest to the outside world should work, but not from outside into the guest (in effect the guest is NATed by qemu). See also http://compsoc.dur.ac.uk/~djw/qemu.html. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <457FB929.2030504-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: Problem with Ubuntu Edgy and AMD X2 [not found] ` <457FB929.2030504-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2006-12-13 8:36 ` Dor Laor 0 siblings, 0 replies; 4+ messages in thread From: Dor Laor @ 2006-12-13 8:36 UTC (permalink / raw) To: Avi Kivity, Franco Spinelli; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f > Franco Spinelli wrote: > > I am testing kvm on my new PC > > MB is Asus M2NPV-VM with AMD CPU X2. > > Installed OS is Ubuntu Edgy > > > > I get kvm tarball and compiled it. > > > > After installing gcc 3.4 I begin compile step > > > > On Ubuntu Edgy there is no uuid/uuid.h file so I have grab it from tar > > file at Ubuntu repository and put it in qemu subdir of kvm > > > > On Ubuntu Edgy libuuid is in /lib/libuuid.so.1 so I make a link from it > > to /lib/libuuid.so > > > > You're probably missing a package. On Fedora Core, e2fsprogs-devel > contains both libuuid.so and uuid.h. > > > After this, I got kvm compile and install. > > I modprobe new module without any problem, create a disk image and > > begint to install Windows XP on that. > > At formatting step it take a long time (about 25 min for a 6Gb of disk) > > with 90% of CPU and only very little i/o activity.At about 99%, exit > > from install with a message "impossible to format". > > > > Using dmesg command I geta lot of this error: > > > > [17192500.496000] kvm: unhandled rdmsr: 0xc0000081 > > > > What cpu is this? A 32-bit Intel Core? If the above is correct it's AMD. On 32-bit host it shouldn't matter. On 64 bit we are handling it, so it's important to know the host OS type. > > > > I have also tried a workaround necessary for Xen on my MB. In install > > procedure of XP I hit F5 key and used "Standard PC" from menu choice, > > without any change > > > > > > Booting with -no-acpi flag an image file made by qemu (for first install > > step) and by Xen (for install completition) boot and work but I am not > > able to activate network connection. I find a network adapter, I can > > configure it but I have no response pinging other LAN PC. > > > > Unless you use ethernet bridging, ping will not work. TCP from the > guest to the outside world should work, but not from outside into the > guest (in effect the guest is NATed by qemu). > > See also http://compsoc.dur.ac.uk/~djw/qemu.html. If you want a script that build a software bridge automatically use download the code from 'svn checkout svn://kvm.qumranet.com/kvm/trunk dirname' Take the dirname/scripts/kvm and put it in /etc/init.d + chkconfig it + service kvm start. The script add sw0 bridge and switches IP with eth0. Now you can run qemu with a tap - use arguments Qemu ..... -net nic -net tap,script=dirname/scripts/qemu-ifup After that you could ping/tcp the guest from outside. > > -- > error compiling committee.c: too many arguments to function > > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with Ubuntu Edgy and AMD X2 [not found] ` <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org> 2006-12-13 8:26 ` Avi Kivity @ 2006-12-13 9:32 ` Avi Kivity 1 sibling, 0 replies; 4+ messages in thread From: Avi Kivity @ 2006-12-13 9:32 UTC (permalink / raw) To: Franco Spinelli; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f [-- Attachment #1: Type: text/plain, Size: 281 bytes --] Franco Spinelli wrote: > Using dmesg command I geta lot of this error: > > [17192500.496000] kvm: unhandled rdmsr: 0xc0000081 > The attached patch should fix it (we didn't handle MSR_STAR on 32-bit AMD hosts) -- error compiling committee.c: too many arguments to function [-- Attachment #2: amd-msr-star.patch --] [-- Type: text/x-patch, Size: 1087 bytes --] Index: kernel/svm.c =================================================================== --- kernel/svm.c (revision 4096) +++ kernel/svm.c (revision 4097) @@ -402,11 +402,11 @@ set_msr_interception(msrpm_va, MSR_GS_BASE, 1, 1); set_msr_interception(msrpm_va, MSR_FS_BASE, 1, 1); set_msr_interception(msrpm_va, MSR_KERNEL_GS_BASE, 1, 1); - set_msr_interception(msrpm_va, MSR_STAR, 1, 1); set_msr_interception(msrpm_va, MSR_LSTAR, 1, 1); set_msr_interception(msrpm_va, MSR_CSTAR, 1, 1); set_msr_interception(msrpm_va, MSR_SYSCALL_MASK, 1, 1); #endif + set_msr_interception(msrpm_va, MSR_K6_STAR, 1, 1); set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_CS, 1, 1); set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_ESP, 1, 1); set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_EIP, 1, 1); @@ -1098,10 +1098,10 @@ case MSR_IA32_APICBASE: *data = vcpu->apic_base; break; -#ifdef CONFIG_X86_64 - case MSR_STAR: + case MSR_K6_STAR: *data = vcpu->svm->vmcb->save.star; break; +#ifdef CONFIG_X86_64 case MSR_LSTAR: *data = vcpu->svm->vmcb->save.lstar; break; [-- Attachment #3: Type: text/plain, Size: 347 bytes --] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV [-- Attachment #4: Type: text/plain, Size: 186 bytes --] _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-13 9:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 22:00 Problem with Ubuntu Edgy and AMD X2 Franco Spinelli
[not found] ` <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org>
2006-12-13 8:26 ` Avi Kivity
[not found] ` <457FB929.2030504-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-12-13 8:36 ` Dor Laor
2006-12-13 9:32 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox