亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 14337 | 回復(fù): 2
打印 上一主題 下一主題

[KVM] qemu-system 啟動(dòng)錯(cuò)誤“drive with bus=0, unit=0 (index=0) exists” [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2014-06-23 01:24 |只看該作者 |倒序?yàn)g覽
本帖最后由 lonelysoul011 于 2014-06-23 01:45 編輯

RT

錯(cuò)誤信息如下:
使用了ifname
  1. qemu-system-x86_64 -m 4096 -smp 4  -hda /root/kvm_demo/rhel58-test.img  -net nic,model=e1000 -net tap,ifname=tap1,script=/etc/qemu-ifup downscript=no  -vnc 172.28.18.244:1:5901
  2. qemu-system-x86_64: -net tap,ifname=tap1,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
復(fù)制代碼
未使用ifname
  1. qemu-system-x86_64 -m 4096 -smp 4  -hda /root/kvm_demo/rhel58-test.img  -net nic,model=e1000 -net tap,script=/etc/qemu-ifup downscript=no  -vnc 172.28.18.244:1:5901
  2. qemu-system-x86_64: -net tap,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
復(fù)制代碼
其他測(cè)試:
  1. [root@localhost ~]# qemu-system-x86_64 -m 4096 -smp 4  -hda /root/kvm_demo/rhel58-test.img  -net nic,model -net tap,script=/etc/qemu-ifup downscript=no  -vnc 172.28.18.244:1:5901
  2. qemu-system-x86_64: -net tap,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
  3. [root@localhost ~]# qemu-system-x86_64 -m 4096 -smp 4  -hda /root/kvm_demo/rhel58-test.img  -net nic,model=rtl8139 -net tap,script=/etc/qemu-ifup downscript=no  -vnc 172.28.18.244:1:5901
  4. qemu-system-x86_64: -net tap,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
復(fù)制代碼
宿主機(jī):CentOS release 6.5 X64
QEMU emulator version 1.2.50 (qemu-kvm-devel)
內(nèi)核版本
Linux localhost.localdomain 3.15.0-rc4+ #2 SMP Fri May 23 12:44:16 GMT 2014 x86_64 x86_64 x86_64 GNU/Linux

啟動(dòng)腳本:
  1. [root@localhost ~]# cat /etc/qemu-ifup
  2. #!/bin/sh
  3. switch=br0

  4. if [ -n "$1" ]
  5. then
  6.     #tunctl -u $(whoami) -t $1
  7.     # start up the TAP interface
  8.     #ifconfig $1 up
  9.      ip link set $1 up
  10.     sleep 1
  11.     brctl addif ${switch} $1
  12.     exit 0
  13. else
  14.     echo "Error: no interface specified"
  15.     exit 1
  16. fi
復(fù)制代碼
宿主機(jī)網(wǎng)絡(luò)狀態(tài):
  1. [root@localhost ~]# brctl  show
  2. bridge name        bridge id                STP enabled        interfaces
  3. br0                8000.c81f66eded6b        yes                em1
復(fù)制代碼
dmesg信息
  1. [root@localhost ~]# dmesg
  2. device tap0 entered promiscuous mode
  3. br0: port 2(tap0) entered listening state
  4. br0: port 2(tap0) entered listening state
  5. br0: port 2(tap0) entered disabled state
  6. device tap0 left promiscuous mode
  7. br0: port 2(tap0) entered disabled state
復(fù)制代碼
messages 信息
  1. [root@localhost ~]# tail /var/log/messages -f

  2. Jun 22 17:44:34 localhost kernel: device tap0 entered promiscuous mode
  3. Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered listening state
  4. Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered listening state
  5. Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered disabled state
  6. Jun 22 17:44:34 localhost kernel: device tap0 left promiscuous mode
  7. Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered disabled state
復(fù)制代碼
出現(xiàn)問(wèn)題后重啟過(guò)一次,問(wèn)題依舊!

論壇徽章:
1
摩羯座
日期:2014-08-04 14:50:06
2 [報(bào)告]
發(fā)表于 2014-06-29 14:14 |只看該作者
host:CentOS-6.5-x86_64
qemu: QEMU emulator version 1.4.2

/usr/local/bin/qemu-system-x86_64 -name win7_x86 -hda win7_x86.qcow2 -boot c -m 1024  -spice port=5911,disable-ticketing -enable-kvm -vga qxl  -net nic,model=e1000 -net tap,ifname=tap1,script=/etc/qemu-ifup

#cat /etc/qemu-ifup
  1. #!/bin/sh
  2. switch=br0

  3. if [ -n "$1" ]
  4. then
  5.     ip link set $1 up
  6.     sleep 1
  7.        
  8.     /usr/sbin/brctl addif ${switch} $1
  9.        
  10.     exit 0
  11. else
  12.     echo "Error: no interface specified"
  13.     exit 1
  14. fi
復(fù)制代碼
我這邊是可以的?创a,跟磁盤(pán)參數(shù)的解析有關(guān),但是看你的運(yùn)行參數(shù),又沒(méi)有沖突。
可以把-hda 換成  -hdb -hdc -hdd 試試。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2014-07-16 14:19 |只看該作者
downscript=***前面是不是少了一個(gè)逗號(hào) 把-hda 的內(nèi)容放到最后面 qemu-system-x86_64 -h上面有參數(shù)順序,需要參照一下
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP