inoxio / ansible-role-proxmox-vms Goto Github PK
View Code? Open in Web Editor NEWAnsible Role - Proxmox VMs
License: Apache License 2.0
Ansible Role - Proxmox VMs
License: Apache License 2.0
hi Guys,
i use Proxmox 6.3 (the newst Version) and i tried to play with you cool ansible playbook.
But it seems somethink happend with your variable or proxmox changed the API maybe:
failed: [node07.] (item={'key': '<test.bla.de>', 'value': {'node': 'node07', 'root_password': 'test', 'ubuntu_distribution': 'xenial', 'locale': 'de_DE', 'memory_size': 1024, 'virtio': '{"virtio0":"local-lvm:50,cache=writeback,discard=on"}', 'network': {'ip': '192.168.100.100', 'netmask': '255.255.255.0', 'gateway': '192.168.100.1', 'nameserver': '1.1.1.1', 'domainname': 'test.'}}}) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "<test.bla.de>", "value": {"locale": "de_DE", "memory_size": 1024, "network": {"domainname": "test.**", "gateway": "192.168.100.1", "ip": "192.168.100.100", "nameserver": "1.1.1.1", "netmask": "255.255.255.0"}, "node": "node07", "root_password": "test", "ubuntu_distribution": "xenial", "virtio": "{"virtio0":"local-lvm:50,cache=writeback,discard=on"}"}}, "msg": "creation of qemu VM <test.bla.de> with vmid 107 failed with exception=400 Bad Request: Parameter verification failed. - {"errors":{"name":"invalid format - value does not look like a valid DNS name\n"},"data":null}"}
i Can change the name: to test.bla.de in the main/task.yml but then it fails after create the kernel for the first boot.
Maybe you guese have an Idea what happend.
Cheers
I modified the defaults/main.yml to set the network to a vswitch with internet connection.
Here's what I added:
net: '{"net0":"virtio,bridge=vmbr2"}'
FULL main.yml
When I executed the sample playbook, the installation keeps getting stuck and fails on BAD ARCHIVE MIRROR.
What I tried:
Going to to the proxmox UI, the VMs had this as the bridge:
To make it work (create VMs and continue ubuntu installation), I had to re-select the correct (vmbr2) switch from the proxmox GUI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.