- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
root@compute01:/usr/src# virt-install --name=Windows2019_x86 --ram 8192 --vcpus=4 --disk path=/usr/src/Windows2019-x86.qcow2,format=qcow2,size=15,bus=virtio --accelerate --cdrom /usr/src/cn_windows_server_2019_x64_dvd_2d80e042.iso --vnc --vncport=5906 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole5 J! O6 W7 H7 k4 t; P8 N- E F
8 ?4 W/ \8 |6 }( K
Starting install...) H& l2 V9 ^# c
ERROR Cannot get interface MTU on 'br0': No such device
" r5 p6 X; F( f, S {9 HDomain installation does not appear to have been successful.
S1 m! ^+ z) `' o2 Z' `1 z' b: s4 `If it was, you can restart your domain by running:5 B0 H# c2 J: c0 [9 b6 W+ l- @- a
virsh --connect qemu:///system start Windows2019_x86
" O/ v3 y: y) _* w' ~# rotherwise, please restart your installation.6 w# d) N7 e7 ]; n: I
7 \% s X/ l# G5 \4 v- q
创建失败:有问题,检查网卡:2 K$ s A& ~3 R; v7 C+ N
3 w9 O3 e; a& _5 Z' u
root@compute01:/usr/src# ip addr
1 F6 B' h; P1 W1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 10000 V x! z) ?& r( ^( G
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
' G& a b2 P/ u" b- ] inet 127.0.0.1/8 scope host lo
6 A; M1 B% G7 @ valid_lft forever preferred_lft forever0 Y$ a2 s! }) q- q/ z
inet6 ::1/128 scope host $ L |/ C. ?4 x% e, V; Q( x. v5 p
valid_lft forever preferred_lft forever* C- m, v/ f) Y% O: q
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000% L8 t2 S4 w) Z! a
link/ether 00:e0:4c:68:10:89 brd ff:ff:ff:ff:ff:ff
! b8 P9 Z) P/ \% ^( t3: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000+ s- _5 ^/ Y* f! {8 F1 y. S! i
link/ether d8:50:e6:4a:41:b2 brd ff:ff:ff:ff:ff:ff# O/ Y; D4 H! y- C9 ~
inet 198.192.168.66/24 brd 198.192.168.255 scope global enp9s0, N" u2 b. L2 t/ E% o
valid_lft forever preferred_lft forever
' e% \. A8 V; [8 z* i inet6 fe80::da50:e6ff:fe4a:41b2/64 scope link
; z! B( ]: A; g( a$ a, ]% U. b valid_lft forever preferred_lft forever
1 \* T( W' |* c6 x( w, r0 V4: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
5 T; f5 f. K# y! g0 U link/ether 04:25:c5:2a:57:13 brd ff:ff:ff:ff:ff:ff
& l, {( J# `$ d inet 192.168.8.66/24 brd 192.168.8.255 scope global enp2s0f0
" i) K/ r" a! z valid_lft forever preferred_lft forever
3 J8 `) c/ r* k+ h inet6 fe80::625:c5ff:fe2a:5713/64 scope link
D8 h5 C$ p3 \$ M5 r: l valid_lft forever preferred_lft forever/ S6 d' ~5 n* g
5: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 10000 B- X5 k. w T
link/ether 04:25:c5:2a:57:14 brd ff:ff:ff:ff:ff:ff% Z% _. k1 u2 |# C% S! l$ R. q
11: vnet2: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000, ]2 W5 u! V- \
link/ether fe:54:00:90:65:d2 brd ff:ff:ff:ff:ff:ff
3 }! H3 S. j7 x. {6 C; z; h; F7 n1 j( k0 {8 G4 l( |
重新配置网络:6 z" s% v$ ?' g C, }1 f9 X
4 z0 i B4 U4 l3 \5 |root@compute01:/usr/src# netplan apply 8 h% E5 f% S& }. M1 L: b
* [* Q( M/ |6 ?& ~** (generate:6407): WARNING **: 13:00:50.842: `gateway4` has been deprecated, use default routes instead.* \2 L% W- q2 K, U
See the 'Default routes' section of the documentation for more details.$ e. E0 M' {0 j9 Y S e( k
6 Z$ W2 u& z, }$ k6 s$ w, J** (process:6405): WARNING **: 13:00:51.287: `gateway4` has been deprecated, use default routes instead.
5 s& _2 S& Q, j3 C$ kSee the 'Default routes' section of the documentation for more details.+ q' X/ K, \! k8 v( S
% B7 N: r5 U0 U0 _( T6 y7 l4 c& M** (process:6405): WARNING **: 13:00:51.298: `gateway4` has been deprecated, use default routes instead.
8 ^% R D( s( k1 U" E! Y& R2 nSee the 'Default routes' section of the documentation for more details.
" I& J4 Q5 A; j7 D9 M5 `
3 v& G* b, x! s** (process:6405): WARNING **: 13:00:51.684: `gateway4` has been deprecated, use default routes instead.8 S! ~! m2 `0 C D' ?
See the 'Default routes' section of the documentation for more details.
- H" }3 G% V" G( U$ Y$ p
( p l2 E. h9 g. F) G** (process:6405): WARNING **: 13:00:51.685: `gateway4` has been deprecated, use default routes instead.
7 k& h1 O& ?4 v) N" FSee the 'Default routes' section of the documentation for more details.4 C. k( |; P, }2 f
7 V' N; f1 E9 ?( P# K% {# U
! v* }( M" n( l7 w" l
再重试,问题解决。' B% u1 p H: I- |
root@compute01:/usr/src# virt-install --name=Windows2019_x86 --ram 8192 --vcpus=4 --disk path=/usr/src/Windows2019-x86.qcow2,format=qcow2,size=15,bus=virtio --accelerate --cdrom /usr/src/cn_windows_server_2019_x64_dvd_2d80e042.iso --vnc --vncport=5906 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole& r: n3 h3 C3 t& b% y' h' Q Y
% J7 ?$ h/ a$ K: R. H( E# P
Starting install...
: n# M! V. U) v' j m8 @Creating domain... | 0 B 00:00:00
6 N; `% {/ F* ?& j' u
: b& [1 Y: I# C+ R8 a; yDomain is still running. Installation may be in progress.& _ e' V+ {0 p3 ^
You can reconnect to the console to complete the installation process.% _# l; s7 T0 ]: r% u
; S& h5 ^9 c+ l1 A
+ X1 z5 C$ d8 t7 a |
|