|
|
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
: N+ I* L! b6 ?# w9 `& q) r! g. k! l9 x7 ^! m
Starting install...7 H4 W9 Z! P- E8 w# m
ERROR Cannot get interface MTU on 'br0': No such device3 C d' c1 m) C% @" a
Domain installation does not appear to have been successful.
0 C, R, H& M# L: C7 ^If it was, you can restart your domain by running:9 p/ ?" t* e, q" P
virsh --connect qemu:///system start Windows2019_x860 M7 J6 m/ {" W4 [; I+ K5 }$ h
otherwise, please restart your installation.6 m% R, V5 F+ |8 v5 w; v; d
) a m: U/ E! a2 L
创建失败:有问题,检查网卡:& n( j, b6 q7 s
- k: M4 I s+ M; c% m/ y
root@compute01:/usr/src# ip addr
; a' z+ N5 p; `$ O, r" s& S1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 10001 E; a" ^+ G1 c7 w, r7 q
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00- L- E; z A# |: A6 u. C
inet 127.0.0.1/8 scope host lo8 ^! O- [3 V1 @8 ^0 Q/ Z
valid_lft forever preferred_lft forever6 x \/ h9 q; D* \, S$ g# s$ C
inet6 ::1/128 scope host 8 @' @9 |% r E/ t2 X$ H5 K
valid_lft forever preferred_lft forever% T, [: {; s: k* ~# t9 R. }9 J
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
8 {* ^# C8 t8 r3 r# X link/ether 00:e0:4c:68:10:89 brd ff:ff:ff:ff:ff:ff
+ f0 d; U1 y/ t+ W+ J1 ^' D2 e3: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 10009 V! S; |' N' T3 y) R
link/ether d8:50:e6:4a:41:b2 brd ff:ff:ff:ff:ff:ff" r2 J/ l3 g, G0 e8 l: k
inet 198.192.168.66/24 brd 198.192.168.255 scope global enp9s04 u3 j7 J: T' e7 c1 l+ @8 u, z* T
valid_lft forever preferred_lft forever+ h( |- [1 L- Y% i5 O' y
inet6 fe80::da50:e6ff:fe4a:41b2/64 scope link
" f$ i; M9 H3 J' J) R. }! d) q! i- J valid_lft forever preferred_lft forever# D& y1 m' k$ L4 P( _! X$ E) Z2 Z
4: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
# d* D. g/ A4 p; i* `* j x link/ether 04:25:c5:2a:57:13 brd ff:ff:ff:ff:ff:ff
' y2 C7 }9 T: b. B' ~ inet 192.168.8.66/24 brd 192.168.8.255 scope global enp2s0f0
$ @1 X/ E( h9 ~( h8 ^ valid_lft forever preferred_lft forever H% ^- Q. p# ^/ w* l
inet6 fe80::625:c5ff:fe2a:5713/64 scope link
1 F" Q4 u) N/ e# q' M$ j valid_lft forever preferred_lft forever. Z u4 p$ h1 }: m# \2 a4 j f
5: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
$ v9 E$ T- G' e$ ?7 E% O link/ether 04:25:c5:2a:57:14 brd ff:ff:ff:ff:ff:ff
: ?2 ]4 z3 Z1 h" e: F( m p11: vnet2: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 10004 { s6 n, U3 s% L
link/ether fe:54:00:90:65:d2 brd ff:ff:ff:ff:ff:ff# }; F X% I( g. v3 a7 H
( O1 E7 S/ t; E
重新配置网络:
3 o. q1 X$ U( D" l5 A$ o/ b! x- D1 F# f. o8 c6 X* O
root@compute01:/usr/src# netplan apply , p- w5 E/ x7 R5 ^( ^% Y$ x
3 c: p& i& q" `6 ^. \
** (generate:6407): WARNING **: 13:00:50.842: `gateway4` has been deprecated, use default routes instead.4 A- l! Y% U, q2 Z+ y. K
See the 'Default routes' section of the documentation for more details.
+ I$ y# I4 K1 `1 K+ Q
4 c& M' d6 R; x** (process:6405): WARNING **: 13:00:51.287: `gateway4` has been deprecated, use default routes instead.
5 ], K4 L- Q* w, T$ \7 S% @6 {See the 'Default routes' section of the documentation for more details.
; a( v: H6 n9 u+ g* l) |; B$ ]! P( [4 ~5 B
** (process:6405): WARNING **: 13:00:51.298: `gateway4` has been deprecated, use default routes instead.
l; X. L8 z( |# B: ]See the 'Default routes' section of the documentation for more details.
# H A k' Q! m3 E" @9 \
q& K9 W' q, l# B** (process:6405): WARNING **: 13:00:51.684: `gateway4` has been deprecated, use default routes instead.
, ?- M% Q& c( v! i0 \See the 'Default routes' section of the documentation for more details.
9 W3 z& F% Q5 E1 l% n3 f- [* z& d2 N0 p; F# I" \2 P5 e
** (process:6405): WARNING **: 13:00:51.685: `gateway4` has been deprecated, use default routes instead.
B c( N4 j' p* r7 {( i" u* bSee the 'Default routes' section of the documentation for more details.
& H3 b7 R# c& J( q3 W8 O8 g6 \/ C3 l1 T# P8 V* |0 e- s2 E
- l: ]" ?# Z% a7 L3 W x6 R- X
再重试,问题解决。' C+ j( e4 `3 h9 A3 M5 N
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
6 S% k: ]" r0 T* f! h, w4 j$ a, i" K4 \
Starting install...
; G; m- r. Q' M2 J! P( |Creating domain... | 0 B 00:00:00
$ q5 d# |& C. b4 A$ m
( N% V% a! [0 o$ Q, KDomain is still running. Installation may be in progress.
* l4 D2 P9 f9 Q4 Q& a0 A" }. X" ]6 \You can reconnect to the console to complete the installation process.
8 J1 L) b3 {$ W! V3 ]- v D# L6 W C6 ^* a ?3 y
! p2 o1 \; J- E5 ^
|
|