|
|
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 --noautoconsole6 F" B+ r. v, j; s9 ], K
4 V, X1 t1 @# N9 E& A4 K1 J
Starting install...
' X( r5 a2 e7 C; aERROR Cannot get interface MTU on 'br0': No such device
9 q2 [' p* _ RDomain installation does not appear to have been successful.
; u9 z# @* ^ Z. Y3 ]+ cIf it was, you can restart your domain by running:/ {/ l0 E. e- e/ \( N
virsh --connect qemu:///system start Windows2019_x86
+ A' i) c6 Q5 _+ e7 X% ?otherwise, please restart your installation.
; I/ x# h; f, h9 N. ]# L* a
: V& z8 h3 M( O3 `# f% B# r, ^创建失败:有问题,检查网卡:4 U; _4 K0 o* I) H" p
. `( Z' @8 W! Q4 B1 i3 L1 k
root@compute01:/usr/src# ip addr2 D7 Y( a3 c: c$ Z0 m1 W- R
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
# L- O, N0 i' ?# ^* k# F" d link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00& _3 Q8 a0 j$ N1 y
inet 127.0.0.1/8 scope host lo
' @( n2 U% J; i) O# h; i$ t& G( [ valid_lft forever preferred_lft forever( J: e9 A. z) l- a* A3 [$ O& g3 l
inet6 ::1/128 scope host - d& c1 S9 t3 ]+ ]0 B: m4 z5 C+ c
valid_lft forever preferred_lft forever
# ^! ~8 H# }( K# H2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
2 L+ p! z4 e* }9 k, u( C link/ether 00:e0:4c:68:10:89 brd ff:ff:ff:ff:ff:ff
) P; F5 V& N/ b( I% B, o3: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
' g* L9 s8 f4 b% N; ]4 B link/ether d8:50:e6:4a:41:b2 brd ff:ff:ff:ff:ff:ff6 X- W' @: e. f8 o) F" x: r
inet 198.192.168.66/24 brd 198.192.168.255 scope global enp9s0
5 @' Y) M% Z+ @0 Y9 J4 f0 E valid_lft forever preferred_lft forever6 i$ M, [6 J2 `& x( j( M" m1 a0 p }' C
inet6 fe80::da50:e6ff:fe4a:41b2/64 scope link % o) [/ r8 \& w% O( K9 z
valid_lft forever preferred_lft forever
% n4 A. ]2 P) h9 { r) x4 q+ V4: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
0 H, B4 J- j. ?) i/ T link/ether 04:25:c5:2a:57:13 brd ff:ff:ff:ff:ff:ff- c8 g3 N- e r
inet 192.168.8.66/24 brd 192.168.8.255 scope global enp2s0f00 I( v, j$ b9 Z; A% A
valid_lft forever preferred_lft forever6 j. e. I4 l! z) K* B7 p
inet6 fe80::625:c5ff:fe2a:5713/64 scope link * C% _) R% ~7 o5 I G \5 s
valid_lft forever preferred_lft forever
! z5 A' ?3 b7 `/ \3 y4 C% U5: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000, n4 Y, h& i$ t% n) J
link/ether 04:25:c5:2a:57:14 brd ff:ff:ff:ff:ff:ff
9 Z; u S- w$ B' M) @2 g11: vnet2: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000% D1 u3 r- x/ I3 ]
link/ether fe:54:00:90:65:d2 brd ff:ff:ff:ff:ff:ff9 O4 h. r7 r' A1 Z. D
' d& m; {/ v; V) A. r+ t6 Y" N4 j) M重新配置网络:" ^7 h. q7 u9 y8 R& p s9 ?9 B
8 l# B/ Q2 f$ h
root@compute01:/usr/src# netplan apply
( y3 r" e+ W& ]% |$ r3 P; c4 f' }* ?$ \
** (generate:6407): WARNING **: 13:00:50.842: `gateway4` has been deprecated, use default routes instead.
$ {) @) {; B" o" S {, ?See the 'Default routes' section of the documentation for more details.
8 b8 V6 ]) _3 X# v7 d4 z9 @, t( j& c- _! n
** (process:6405): WARNING **: 13:00:51.287: `gateway4` has been deprecated, use default routes instead.
. q; A. q3 G& y2 S& VSee the 'Default routes' section of the documentation for more details.
6 |/ l+ G7 o3 n9 m0 m7 _$ d) D+ ?9 [7 l& Y, S' e# C
** (process:6405): WARNING **: 13:00:51.298: `gateway4` has been deprecated, use default routes instead.
/ b( _+ j2 W L( q1 Z3 \See the 'Default routes' section of the documentation for more details.% L0 R0 N: A. |) f
4 S1 _/ B' ~1 @4 Z2 ~% a7 ]( G
** (process:6405): WARNING **: 13:00:51.684: `gateway4` has been deprecated, use default routes instead.
7 m* P! L+ L% pSee the 'Default routes' section of the documentation for more details.) e( K) V% k" Q( g9 ~2 Y
( {2 q8 {2 W. P/ w. `; f" }
** (process:6405): WARNING **: 13:00:51.685: `gateway4` has been deprecated, use default routes instead.
) Q. a9 d* m# ]7 gSee the 'Default routes' section of the documentation for more details.* J; _( M. O1 q3 g5 h) }
1 [7 R7 Q0 Z$ B) f# s
' k3 s- O8 @: d, ]再重试,问题解决。- m2 u! V' j$ q! [4 s9 j
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" j6 W( S! K' m
/ T* l$ O2 J( Y! R5 \5 P
Starting install...
9 q* w- k% M) T9 q6 o" b% aCreating domain... | 0 B 00:00:00 A0 T. K0 i) T1 t0 ^
! b) R* Y' x) R( c5 G
Domain is still running. Installation may be in progress.
6 N: `, t4 h2 Q4 O lYou can reconnect to the console to complete the installation process.
8 x: V% ^5 |0 J0 n6 `+ c6 K! q; F3 |, e
+ o! R! O0 c. }% L6 A- \. \# I2 H
|
|