Comments (8)
Thanks. Looks like your VM doesn't get an IP, and it's unable to reach hyper-v host for kickstart file
Can you confirm (when in VM dracut fails), what IP is assigned, if any?
from hv-packer.
My guess (guess as you did't paste any logs) is - no rule for firewall or wrong switch name/van used.
Check the readme for guidance.
from hv-packer.
Logs:
Get-NetAdapter
Get-VMSwitch |fl
Get-NetFirewallRule -Displayname "Packer_http_server"
from hv-packer.
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
vEthernet (vSwitch) Hyper-V Virtual Ethernet Adapter 14 Up 00-22-48-1E-77-01 50 Gbps
Ethernet 6 Microsoft Hyper-V Network Adapter #6 17 Up 00-22-48-1E-77-01 50 Gbps
Name : vSwitch
Id : a49cb013-4cc5-4e5a-9315-8af9347c1d98
Notes :
Extensions : {Microsoft Windows Filtering Platform, Microsoft Azure VFP Switch
Extension, Microsoft NDIS Capture}
BandwidthReservationMode : Absolute
PacketDirectEnabled : False
EmbeddedTeamingEnabled : False
IovEnabled : False
SwitchType : External
AllowManagementOS : True
NetAdapterInterfaceDescription : Microsoft Hyper-V Network Adapter #6
NetAdapterInterfaceDescriptions : {Microsoft Hyper-V Network Adapter #6}
NetAdapterInterfaceGuid : {178a7cfe-dbde-46f1-a8e2-fdce64ea7d27}
IovSupport : False
IovSupportReasons : {Ensure that the system has chipset support for SR-IOV and that I/O
virtualization is enabled in the BIOS., To use SR-IOV on this
system, the system BIOS must be updated to allow Windows to control
PCI Express. Contact your system manufacturer for an update.,
SR-IOV cannot be used on this system as the PCI Express hardware
does not support Access Control Services (ACS) at any root port.
Contact your system vendor for further information., This network
adapter does not support SR-IOV.}
AvailableIPSecSA : 0
NumberIPSecSAAllocated : 0
AvailableVMQueues : 0
NumberVmqAllocated : 0
IovQueuePairCount : 0
IovQueuePairsInUse : 0
IovVirtualFunctionCount : 0
IovVirtualFunctionsInUse : 0
PacketDirectInUse : False
DefaultQueueVrssEnabledRequested : True
DefaultQueueVrssEnabled : False
DefaultQueueVmmqEnabledRequested : True
DefaultQueueVmmqEnabled : False
DefaultQueueVrssMaxQueuePairsRequested : 16
DefaultQueueVrssMaxQueuePairs : 0
DefaultQueueVrssMinQueuePairsRequested : 1
DefaultQueueVrssMinQueuePairs : 0
DefaultQueueVrssQueueSchedulingModeRequested : StaticVrss
DefaultQueueVrssQueueSchedulingMode : Dynamic
DefaultQueueVrssExcludePrimaryProcessorRequested : False
DefaultQueueVrssExcludePrimaryProcessor : False
SoftwareRscEnabled : True
BandwidthPercentage : 10
DefaultFlowMinimumBandwidthAbsolute : 5000000000
DefaultFlowMinimumBandwidthWeight : 0
CimSession : CimSession: .
ComputerName : PACKER-AGENT-02
IsDeleted : False
DefaultQueueVmmqQueuePairs : 0
DefaultQueueVmmqQueuePairsRequested : 16
Name : {fcb7b443-301c-42fe-a6b4-e89288eb0dcd}
DisplayName : Packer_http_server
Description :
DisplayGroup :
Group :
Enabled : True
Profile : Any
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : Block
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : The rule was parsed successfully from the store. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : Local
from hv-packer.
Looks ok. Can you switch PACKER_LOGS to 1 and paste a gist?
from hv-packer.
https://gist.github.com/ykravch/c79e83b473116ab03c9c3512b6686d00
from hv-packer.
Thank you. You're right, the problem is that VM doesn't get an IP address.
from hv-packer.
Hi @ykravch , thanks for info. I'll update documentation as it seems quite popular these days ;)
from hv-packer.
Related Issues (16)
- Error: hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop. HOT 8
- disk space HOT 2
- Confirmation on the use of Ansible Provisioner HOT 1
- Can't login HOT 22
- I fail to override variable values HOT 4
- I get a warning and it says that source code is not available HOT 2
- Ubuntu 22.04.1 Not able to Install HOT 12
- Can not SSH to VM and create a box for Vagrant - Using Packer with Ubuntu HOT 1
- packer not taking kickstart file HOT 2
- WS22 - Datacenter Edition - Incorrect Value HOT 2
- Provisioning step had errors - Ubuntu 22.04 - Windows 11 Hyper-v HOT 4
- centos 7 and 8 build error HOT 1
- Template Fail to Boot HOT 9
- Support for Packer Windows Update Provisioner HOT 5
- ubuntu 20.04 LVM not created as per user-data HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hv-packer.