All of lore.kernel.org
 help / color / mirror / Atom feed
* Ubuntu 8.04 LTS guest running slowly
@ 2010-01-11 14:46 Neil Aggarwal
  2010-01-11 14:49 ` Avi Kivity
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Aggarwal @ 2010-01-11 14:46 UTC (permalink / raw)
  To: kvm

Hello:

I am trying to install an Ubuntu 8.04 LTS guest on
my CentOS 5.4 server running KVM.

If I use the accelerate option to virt-install,
the guest crashes during the install.

If I add <model type='virtio'/> to the XML configuration
file after installing, the system locks at times when
it is accessing the network.

I ran the same guest on Xen and it runs very fast.

Any suggestions on how to fix this?

Thanks,
	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host Joomla!, Wordpress, phpBB, or vBulletin for $25/mo
Unmetered bandwidth = no overage charges, 7 day free trial


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ubuntu 8.04 LTS guest running slowly
  2010-01-11 14:46 Ubuntu 8.04 LTS guest running slowly Neil Aggarwal
@ 2010-01-11 14:49 ` Avi Kivity
  2010-01-11 15:04   ` Neil Aggarwal
  0 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2010-01-11 14:49 UTC (permalink / raw)
  To: Neil Aggarwal; +Cc: kvm

On 01/11/2010 04:46 PM, Neil Aggarwal wrote:
> Hello:
>
> I am trying to install an Ubuntu 8.04 LTS guest on
> my CentOS 5.4 server running KVM.
>
> If I use the accelerate option to virt-install,
> the guest crashes during the install.
>    

Well, without kvm it will definitely run slowly.

I think the install problem is due to the grub splash screen, if you 
disable that the install should proceed.

> If I add<model type='virtio'/>  to the XML configuration
> file after installing, the system locks at times when
> it is accessing the network.
>    

What kernel does the guest use?

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Ubuntu 8.04 LTS guest running slowly
  2010-01-11 14:49 ` Avi Kivity
@ 2010-01-11 15:04   ` Neil Aggarwal
  2010-01-11 15:26     ` Neil Aggarwal
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Aggarwal @ 2010-01-11 15:04 UTC (permalink / raw)
  To: kvm

Avi:

> I think the install problem is due to the grub splash screen, if you 
> disable that the install should proceed.
> What kernel does the guest use?

I am running the TunkeyLinux LAMP appliance found here:
http://www.turnkeylinux.org/lamp

I downloaded the ISO file from the web site.
Then, I used this command to intall it:
virt-install -n v1067 -r 512 --vcpus=1 --os-type=linux
--os-variant=ubuntuhardy -v --accelerate -c
/tmp/turnkey-lamp-2009.10-hardy-x86.iso -f /var/lib/libvirt/images/v1067.img
-s 15 -b br0 --vnc --noautoconsole

When I connect to the VNC console, I get the Turnkey linux options screen.
I select Install to hard disk from there and it seems to start the install
but crashes during the installer startup.

If I install it without the accelerate option, it installs, but runs
very slowly.

When I login to the server and run uname -a, I get this back:
Linux lamp 2.6.24-24-generic #1 SMP Sat Aug 22 01:06:14 UTC 2009 i686
GNU/Linux

Any ideas?

Thanks,
	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, PayPal, Google Checkout


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Ubuntu 8.04 LTS guest running slowly
  2010-01-11 15:04   ` Neil Aggarwal
@ 2010-01-11 15:26     ` Neil Aggarwal
  2010-01-11 15:49       ` Neil Aggarwal
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Aggarwal @ 2010-01-11 15:26 UTC (permalink / raw)
  To: kvm

Avi:

Here is something strange:

I was testing the command I used to see if I could
identify where the crash occurred. I did a virsh destroy
and virsh undefine on the guest and issued the command to 
install it with the accelerate option. The installation 
was fast and ran through the entire install perfectly.

I then destroyed the guest, undefined the guest, and removed 
the disk file for it.  After that, I tried an install with 
the accelerate option and it crashed.

It seems to have something to do with the disk file
being present.

I am testing to see if this is repeatable.  If so, there 
has to be a way to debug it.

Any ideas/suggestions?

Thanks,
	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, PayPal, Google Checkout

> -----Original Message-----
> From: kvm-owner@vger.kernel.org 
> [mailto:kvm-owner@vger.kernel.org] On Behalf Of Neil Aggarwal
> Sent: Monday, January 11, 2010 9:04 AM
> To: kvm@vger.kernel.org
> Subject: RE: Ubuntu 8.04 LTS guest running slowly
> 
> Avi:
> 
> > I think the install problem is due to the grub splash 
> screen, if you 
> > disable that the install should proceed.
> > What kernel does the guest use?
> 
> I am running the TunkeyLinux LAMP appliance found here:
> http://www.turnkeylinux.org/lamp
> 
> I downloaded the ISO file from the web site.
> Then, I used this command to intall it:
> virt-install -n v1067 -r 512 --vcpus=1 --os-type=linux
> --os-variant=ubuntuhardy -v --accelerate -c
> /tmp/turnkey-lamp-2009.10-hardy-x86.iso -f 
> /var/lib/libvirt/images/v1067.img
> -s 15 -b br0 --vnc --noautoconsole
> 
> When I connect to the VNC console, I get the Turnkey linux 
> options screen.
> I select Install to hard disk from there and it seems to 
> start the install
> but crashes during the installer startup.
> 
> If I install it without the accelerate option, it installs, but runs
> very slowly.
> 
> When I login to the server and run uname -a, I get this back:
> Linux lamp 2.6.24-24-generic #1 SMP Sat Aug 22 01:06:14 UTC 2009 i686
> GNU/Linux
> 
> Any ideas?
> 
> Thanks,
> 	Neil
> 
> --
> Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
> CentOS 5.4 VPS with unmetered bandwidth only $25/month!
> No overage charges, 7 day free trial, PayPal, Google Checkout
> 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Ubuntu 8.04 LTS guest running slowly
  2010-01-11 15:26     ` Neil Aggarwal
@ 2010-01-11 15:49       ` Neil Aggarwal
  2010-01-11 23:51         ` Ubuntu 8.04 LTS guest running slowly [Solved?] Neil Aggarwal
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Aggarwal @ 2010-01-11 15:49 UTC (permalink / raw)
  To: kvm

Avi:

> It seems to have something to do with the disk file
> being present.

Unfortunately, it crashed when I tried to do an install
this time, even with the disk file present.  It must have
been a fluke.

When I look at the screen, it seems to be crashing at 
the same point in the installation process which looks
to be right after it prints a message about input4.

Looking at dmesg on the running system, I see these lines:
[218721.046402] input: ImExPS/2 Generic Explorer Mouse as
/devices/platform/i8042/serio1/input/input4
[218722.372199] Adding 706820k swap on /dev/sda5.  Priority:-1 extents:1
across:706820k
[218722.446108] EXT3 FS on sda1, internal journal
[218723.218838] NET: Registered protocol family 10
[218723.219309] lo: Disabled Privacy Extensions
[218733.554734] eth0: no IPv6 routers present
[218760.283624] eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
[218770.434167] eth0: no IPv6 routers present
[218932.632286] Clocksource tsc unstable (delta = -135864080 ns)
[218932.708238] Time: acpi_pm clocksource has been installed.

The next line after input4 is setting up swap on the disk.
Again, this seems to be related to disk.

The crash is repeatable.  There has to be a way to diagnose
it.  Is there any way to get more information on what 
happened so we can debug it?

Thanks,
	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, PayPal, Google Checkout


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Ubuntu 8.04 LTS guest running slowly [Solved?]
  2010-01-11 15:49       ` Neil Aggarwal
@ 2010-01-11 23:51         ` Neil Aggarwal
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Aggarwal @ 2010-01-11 23:51 UTC (permalink / raw)
  To: kvm


Avi:

This is very strange.

I have been experimenting with the TKL LAMP appliance
to figure out why it sometimes installs with the accelerate
option and why it fails at other times.

My experimentation lead to a very strange circumstance where
I can get things to work:

1. Start with either a pre-existing disk from a previous
	installation or no disk file.
2. Issue this command to install the guest (All on one line):
   virt-install -n v1067 -r 512 --vcpus=1 --os-type=linux 
   --os-variant=ubuntuhardy -v -c /tmp/turnkey-lamp-2009.10-hardy-x86.iso
   -f /var/lib/libvirt/images/v1067.img -s 15 -b br0 --vnc --noautoconsole
   --accelerate
3. Connect to the VNC console
4. When the Turnkey Linux splash screen comes up, there is a 30 sec
   countdown timer on it.  Wait until that timer counts down to
   5 sec left and the select Install to hard disk.
5. Continue the install as normal.
6. When the appliance finishes installed, it will ask to reboot,
   allow it to do so.  It will shut down.
7. Edit the guest's XML file and remove <model type='virtio'/> from
   the network interface.  The appliance crashes during boot if I
   leave the virtio model in the file.
8. Boot the appliance.

Everything works now and it is running fast.  I ran the install
5 times just to be sure this procedure works.  It ran without
problems every time.

There must be some kind of race condition that is solved when I
wait in step 4.

Step 7 seems to be the known issue with virtio referred to on
the guest support status page.

I am preplexed that it works, but I am not complaining!

	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, PayPal, Google Checkout


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-11 23:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 14:46 Ubuntu 8.04 LTS guest running slowly Neil Aggarwal
2010-01-11 14:49 ` Avi Kivity
2010-01-11 15:04   ` Neil Aggarwal
2010-01-11 15:26     ` Neil Aggarwal
2010-01-11 15:49       ` Neil Aggarwal
2010-01-11 23:51         ` Ubuntu 8.04 LTS guest running slowly [Solved?] Neil Aggarwal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.