FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-06-2012, 12:23 AM
Carl Fink
 
Default Alternative(s) to VirtualBox

On Thu, Jul 05, 2012 at 02:08:07PM -0400, Gary Dale wrote:

> Sorry. Have you installed bridge-utils?

Yes.q
--
Carl Fink nitpicking@nitpicking.com

Read my blog at blog.nitpicking.com. Reviews! Observations!
Stupid mistakes you can correct!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120706002326.GC19941@panix.com">http://lists.debian.org/20120706002326.GC19941@panix.com
 
Old 07-06-2012, 12:43 AM
Carl Fink
 
Default Alternative(s) to VirtualBox

On Thu, Jul 05, 2012 at 08:43:28PM +0100, Chris Davies wrote:
> Carl Fink <carl@finknetwork.com> wrote:
> > I tried kvm, but virt-manager reports "Unable to connect to libvirt"
> > even though libvirtd is running.
>
> Add yourself to the libvirt group.

Already in it.

> > If I start kvm from the command line I get:
> > WARNING: gnome-keyring:: couldn't connect to: /home/carlf/.cache/keyring-7jbXBL/pkcs11: No such file or directory
> > error: failed to get domain '/mnt/data/kvm-images/xp2'
> > error: An error occurred, but the cause is unknown
>
> How are you starting kvm, and with what options?

Believe it or not that helped a lot.

I was using a command I found online somewhere:

virsh start /mnt/data/kvm-images/xp2

That produced the above-quoted error.

Inspired by your question I looked for alternatives. I found this one:

kvm -usb -m 512 /mnt/data/kvm-images/xp2

(I should clarify that I made a qcow2 image from a VB virtual hard drive and
named it xp2.)

This boots! Then it spontaneously bluescreens and reboots. Forever. Windows
reports a STOP error but it then reboots before I can transcribe anything.

If I replace kvm with qemu in the above and boot in safe mode, it takes much
longer to reboot. Then it reboots.

I'm going to try installing Windows on a fresh virtual machine and see what
happens.

I'd still like to know why virt-manager isn't working.

Thanks.
--
Carl Fink nitpicking@nitpicking.com

Read my blog at blog.nitpicking.com. Reviews! Observations!
Stupid mistakes you can correct!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120706004353.GD19941@panix.com">http://lists.debian.org/20120706004353.GD19941@panix.com
 
Old 07-06-2012, 02:52 AM
Carl Fink
 
Default Alternative(s) to VirtualBox

On Thu, Jul 05, 2012 at 08:43:53PM -0400, Carl Fink wrote:

New information. If I start virt-manager as root I get a different error:

Error starting Virtual Machine Manager: No D-BUS daemon running


Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
main()
File "/usr/share/virt-manager/virt-manager.py", line 315, in main
config = virtManager.config.vmmConfig(appname, appversion, glade_dir)
File "/usr/share/virt-manager/virtManager/config.py", line 98, in __init__
self.conf.add_dir(self.conf_dir, gconf.CLIENT_PRELOAD_NONE)
GError: No D-BUS daemon running


Oddly enough, I still get this error if I start virt-manager as root with
the "--no-dbus" flag. Why is it ignoring the flag?
--
Carl Fink nitpicking@nitpicking.com

Read my blog at blog.nitpicking.com. Reviews! Observations!
Stupid mistakes you can correct!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120706025253.GA11436@panix.com">http://lists.debian.org/20120706025253.GA11436@panix.com
 
Old 07-06-2012, 03:02 AM
Carl Fink
 
Default Alternative(s) to VirtualBox

This is becoming a monologue, but I'm hoping someone doing a search will
find the info useful.

On Thu, Jul 05, 2012 at 10:52:53PM -0400, Carl Fink wrote:

> On Thu, Jul 05, 2012 at 08:43:53PM -0400, Carl Fink wrote:
>
> New information. If I start virt-manager as root I get a different error:
>
> Error starting Virtual Machine Manager: No D-BUS daemon running

Searching on this error found a couple of bug reports for Red Hat/Fedora:

http://www.redhat.com/archives/virt-tools-list/2012-May/msg00043.html
https://bugzilla.redhat.com/show_bug.cgi?id=809264

The second has the solution:
DBUS_SESSION_BUS_ADDRESS=""

So I can now run virt-manager as root. Which I shouldn't, but I think the
first contains the solution, which is permissions in the libvirt directory.

Wow, that took a lot of fiddling.
--
Carl Fink nitpicking@nitpicking.com

Read my blog at blog.nitpicking.com. Reviews! Observations!
Stupid mistakes you can correct!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120706030245.GA13299@panix.com">http://lists.debian.org/20120706030245.GA13299@panix.com
 
Old 07-06-2012, 09:36 AM
Chris Davies
 
Default Alternative(s) to VirtualBox

Carl Fink <carl@finknetwork.com> wrote:
> Believe it or not that helped a lot.
> I was using a command I found online somewhere:
> virsh start /mnt/data/kvm-images/xp2

Ah. That tells libvirt to start a guest that has been previously
configured within libvirt, and that /mnt/data/kvm-images/xp2 is the
name of (not path to!) the configuration. Although over here it produces
this error:

$ virsh start /etc/motd
error: failed to get domain '/etc/motd'
error: Domain not found: no domain with matching name '/etc/motd'


> Inspired by your question I looked for alternatives. I found this one:
> kvm -usb -m 512 /mnt/data/kvm-images/xp2

> (I should clarify that I made a qcow2 image from a VB virtual hard drive and
> named it xp2.)

> This boots! Then it spontaneously bluescreens and reboots. Forever. Windows
> reports a STOP error but it then reboots before I can transcribe anything.

Does VB use kvm as its underlying execution system? If not, you may find
that Windows needs different device drivers for the "new" (emulated)
hardware environment, and finding it hasn't got them, throws its hands
up in horror.


> If I replace kvm with qemu in the above and boot in safe mode, it takes much
> longer to reboot. Then it reboots.

Qemu is a CPU emulator. Kvm uses the physical CPU. Hence the significant
speed difference. Park that one for now and stick with Kvm.


What worked for me just now was to use the Virtual Machine Manager GUI
to create a new machine (from an existing libvirt/kvm image):

Name: WindowsXP
Install: Import existing disk image
Existing storage path: {as appropriate}
OS type: Windows
Version: Windows XP (x86)
Memory: 768
CPUs: 1

If you try this it will give you a working libvirt XML configuration
file that you can (try to) tweak as necessary. (Note that the "import"
of the existing disk image isn't a file copy; the libvirt definition
simply uses the file path you provide.)

sudo virsh list
Id Name State
----------------------------------
1 WindowsXP running


> I'd still like to know why virt-manager isn't working.

I think it might be, but it isn't working the way you think it should
be...?


As an extra thought, here is a kvm command that I used recently to start
a WindowsXP image by hand:

kvm -m 768 -name WindowsXP -rtc base=localtime -boot c
-hda /var/lib/libvirt/images/WindowsXP.img -usb -usbdevice tablet
-vga std -device AC97 -net nic -net user

Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: m5oic9xl0j.ln2@news.roaima.co.uk">http://lists.debian.org/m5oic9xl0j.ln2@news.roaima.co.uk
 
Old 07-06-2012, 02:20 PM
Camaleón
 
Default Alternative(s) to VirtualBox

On Thu, 05 Jul 2012 20:19:44 -0400, Carl Fink wrote:

> On Thu, Jul 05, 2012 at 05:43:41PM +0000, Camale?n wrote:
>
>> Also, check if the application you're running (Premiere Elements) does
>> provide an option to disable effects (e.g., video overlay, 3D
>> acceleration...) or somesetting that could be making the guest to
>> behave weirdly.
>
> I should have mentioned that I've turned off all acceleration, etc. and
> it hasn't helped--it also tends to make a video editing application not
> that useful!

Better slow than crashing :-)

You can still test with a different VB version (in a different box -
whether possible- to avoid mixing up both installs) so you can discard a
bug hitting a specific version of the program.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/jt6s75$339$7@dough.gmane.org
 
Old 07-06-2012, 11:48 PM
Carl Fink
 
Default Alternative(s) to VirtualBox

On Fri, Jul 06, 2012 at 02:20:21PM +0000, Camale?n wrote:

> You can still test with a different VB version (in a different box -
> whether possible- to avoid mixing up both installs) so you can discard a
> bug hitting a specific version of the program.

I could, but since I got kvm working and it's really fast I have much less
incentive to do so.

Problem was actually diagnosed back upthread: for some reason I was not
actually in the libvirt group, even though I ran the command? And yes, I had
logged out. Checking /etc/group showed me not in it. Adding myself a second
time lets virt-manager work perfectly.

Question for the group: should I file a bug against virt-manager suggesting
that it either add the current user to the libvirt group (preferred) or at
least *tell* the user to add him/herself? And maybe an error message in
virt-manager that states the problem correctly, instead of the current
incorrect message?
--
Carl Fink nitpicking@nitpicking.com

Read my blog at blog.nitpicking.com. Reviews! Observations!
Stupid mistakes you can correct!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120706234813.GA27081@panix.com">http://lists.debian.org/20120706234813.GA27081@panix.com
 
Old 07-09-2012, 05:52 AM
Arun Khan
 
Default Alternative(s) to VirtualBox

On Fri, Jul 6, 2012 at 5:48 AM, Carl Fink <carl@finknetwork.com> wrote:

> By the way, it is not necessary to copy me on responses. I read the mailing
> list and have for (argh!) two decades.

I am guessing this is default setting in this mailing list.

The "original sender" is auto filled when I click on the "Reply" link.
Whereas in Reply-All the To field is the "original sender" and the Cc
field is this mailing list. I am using chrome web browser to read
mail.

On the topic, nice discussion going on, I have picked up a couple of
tips re usage of KVM.

I have not done any KVM on Debian but have a setup of a few machines
under virt-manager on Ubuntu 12.04 server edition. In that box I
have created a sudo rule for a group of users so that members can
manage VMs from virt-manager (and all it's associated lower level
tools). It is working out great!

Here is my /etc/sudoers.d/kvm file:

<file listing>

# User alias specification
User_Alias VIRT_USERS = user1, user2, user3

# Cmnd alias specification
Cmnd_Alias VIRT_MGR = /usr/bin/kvm, /usr/bin/kvm-img,
/usr/bin/kvm-nbd, /usr/bin/kvm_stat, /usr/bin/qemu-ga,
/usr/bin/qemu-ifdown, /usr/bin/qemu-ifup, /usr/bin/qemu-img,
/usr/bin/qemu-io, /usr/bin/qemu-nbd, /usr/bin/qemu-system-x86_64,
/usr/bin/qemu-x86_64, /sbin/brctl, /usr/sbin/tunctl,
/usr/bin/virt-clone, /usr/bin/virt-convert, /usr/bin/virt-image,
/usr/bin/virt-install, /usr/bin/virt-manager,
/usr/bin/virt-pki-validate, /usr/bin/virt-xml-validate

# host alias specification
Host_Alias NETWORK = 172.16.0.0/255.255.255.0

# now define the virt manager and kvm command to users
VIRT_USERS NETWORK = VIRT_MGR

</file listing>

Keep in mind the above list is for the tool set in Ubuntu. The names
may be different in Debian.

HTH,
--
Arun Khan
"As a layman, I would say we have it, but as a scientist I have to
say, 'What do we have?'"
Rolf Heuer, Director General CERN on the announcement of the Higgs
Boson particle.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAHhM8gBY_5DzQW+-m1Dcd1oLQT2mLtruUPGy=8Kx-ZP9KwsorA@mail.gmail.com
 
Old 07-09-2012, 10:00 AM
Lisi
 
Default Alternative(s) to VirtualBox

On Monday 09 July 2012 06:52:50 Arun Khan wrote:
> On Fri, Jul 6, 2012 at 5:48 AM, Carl Fink <carl@finknetwork.com> wrote:
> > By the way, it is not necessary to copy me on responses. I read the
> > mailing list and have for (argh!) two decades.

> I am guessing this is default setting in this mailing list.

I'm afraid that you are guessing incorrectly. You are requested only to reply
to sender if a cc is specifically requested.

<quote>
When replying to messages on the mailing list, do not send a carbon copy (CC)
to the original poster unless they explicitly request to be copied.
</quote>

http://www.debian.org/MailingLists/#codeofconduct

Lisi


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201207091100.55110.lisi.reisz@gmail.com">http://lists.debian.org/201207091100.55110.lisi.reisz@gmail.com
 
Old 07-10-2012, 07:59 PM
Andrei POPESCU
 
Default Alternative(s) to VirtualBox

On Lu, 09 iul 12, 11:22:50, Arun Khan wrote:
> On Fri, Jul 6, 2012 at 5:48 AM, Carl Fink <carl@finknetwork.com> wrote:
>
> > By the way, it is not necessary to copy me on responses. I read the mailing
> > list and have for (argh!) two decades.
>
> I am guessing this is default setting in this mailing list.
>
> The "original sender" is auto filled when I click on the "Reply" link.
> Whereas in Reply-All the To field is the "original sender" and the Cc
> field is this mailing list. I am using chrome web browser to read
> mail.

You probably mean the list doesn't do reply-to-munging[1].

[1] http://www.unicom.com/pw/reply-to-harmful.html

In case it crossed your mind to question this, please, please do read
all the many threads in the archive before that.

Kind regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 

Thread Tools




All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org