Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1362375
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: 虚拟化

2012-10-13 23:55:49

On Fedora, when KVM images don't reside in /var/lib/libvirt/images, virsh failed to create such a vm and complains
about as follows:

  1. [root@fedora17 winxp]# virsh create winxp.xml
  2. error: Failed to create domain from winxp.xml
  3. error: internal error Process exited while reading console log output: char device redirected to /dev/pts/3
  4. do_spice_init: starting 0.10.1
  5. spice_server_add_interface: SPICE_INTERFACE_MIGRATION
  6. spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
  7. spice_server_add_interface: SPICE_INTERFACE_MOUSE
  8. qemu-kvm: -drive file=/var/lib/libvirt/images/winxp/winxp.img,if=none,id=drive-virtio-disk0,format=qcow2,cache=directsync: could not open disk image /var/lib/libvirt/images/winxp/winxp.img: Permission denied

To get rid of such a restriction,

# vi /etc/libvirt/qemu.conf
...
user = "root"
group = "root"
dynamic_ownership = 0
...
阅读(1477) | 评论(1) | 转发(0) |
0

上一篇:Fedora 17 with Open vSwitch

下一篇:CFS parameters

给主人留下些什么吧!~~

woaimaidong2014-07-30 16:19:44

很有用的一篇博文,今天用到了,感谢博主!