Comments (7)
Posting the Vagrantfile you used helps in figuring out what is going wrong, but from the output I suspect you have not specified a correct network UUID
==> default: Fetching name for network with UUID 'network id'
You can either specify a network UUID (something you need to find out in Cloudstack) or a network name (something you also find out in Cloudstack but is easier to remember).
From the output it seems you have set something like
cloudstack.network_id = 'network id'
Where network id
should be a UUID of a network in Cloudstack.
from vagrant-cloudstack.
Hi Miguel
Thanks a lot. I'm new to Cloudstack.
---vagrantfile-----
Vagrant.configure("2") do |config|
# We don't use virtualbox so use dummy
config.vm.box = "dummy"
# The username of your bootstrap account
config.ssh.username = "bootstrap"
#Path to the SSH key of your bootstrap account
config.ssh.private_key_path = "~/.ssh/bootstrap.key"
# Tell Vagrant which version of Chef client to use config.omnibus.chef_version =:latest
# Tell Vagrant we like to use Berkshelf to resolve our cookbook dependencies config.berkshelf.enabled = true
# Now configure the Cloudstack parameters
config.vm.provider :cloudstack do |cloudstack, override|
cloudstack.host = "cloudstack.cloudprovider.org"
cloudstack.port = "443"
cloudstack.scheme = "https"
cloudstack.api_key = "1234567890qwertyuio"
cloudstack.secret_key = "1234567890qwertyu"
cloudstack.template_id = "template id"
cloudstack.service_offering_id = "offering id"
cloudstack.network_id = "network id"
cloudstack.zone_id = "ezone"
cloudstack.project_id = "ecloud"
cloudstack.instance_ready_timeout = 300
end
end
from vagrant-cloudstack.
No worries @ezhang-pivotal, we're here to help you out.
In your Vagrantfile I see that you have not filled in several parameters that are required, namely:
cloudstack.template_id = "template id"
cloudstack.service_offering_id = "offering id"
cloudstack.network_id = "network id"
cloudstack.zone_id = "ezone"
cloudstack.project_id = "ecloud"
The vagrant-cloudstack plugin needs you to tell it which zone, project, template, service offering and network to use when creating a VM.
So, you need to have those ready in Cloudstack and then fill in the values in your Vagrantfile.
You can either fill in UUIDs or the names. For the UUIDs you need to use the *_id
attributes (just like what you have in your current Vagrantfile). For the names you need to use the respective *_name
attributes.
Example Vagrantfile snippet using UUIDs:
cloudstack.template_id = "12e2209a-cf0f-4aab-ac8b-8c208b25d9aa"
cloudstack.service_offering_id = "34e2209a-cf0f-4aab-ac8b-8c208b25d9aa"
cloudstack.network_id = "56e2209a-cf0f-4aab-ac8b-8c208b25d9aa"
cloudstack.zone_id = "78e2209a-cf0f-4aab-ac8b-8c208b25d9aa"
cloudstack.project_id = "90e2209a-cf0f-4aab-ac8b-8c208b25d9aa"
(UUIDs are fake, just for reference)
Example Vagrant file snippet using equivalent names:
cloudstack.template_name = "some_template"
cloudstack.service_offering_name = "some_service_offering"
cloudstack.network_name = "some_network"
cloudstack.zone_name = "ecloud"
cloudstack.project_name = "ecloud"
Let me know if you run into other difficulties.
from vagrant-cloudstack.
Maybe I have wrong understanding. I still need a Cloudstack to using this? What I'm trying to find is a small cloudstack can run in vagrant
from vagrant-cloudstack.
Yes, you do need a Cloudstack installation to run this against.
Basically, this plugin allows you to use Cloiudstack as a back-end for your Vagrant VMs.
from vagrant-cloudstack.
@ezhang-pivotal can I close this issue?
from vagrant-cloudstack.
Hi Schuberg Thanks a lot for your help. You can close it now
发送自 Outlook
On Thu, Aug 20, 2015 at 4:27 PM -0700, "Miguel Ferreira" [email protected] wrote:
@ezhang-pivotal can I close this issue?
—
Reply to this email directly or view it on GitHub.
from vagrant-cloudstack.
Related Issues (20)
- pf_open_firewall should not be combined/related with pf_trusted_networks
- Generate SSH keys within ACS, specific to a VM, for the lifetime of that VM
- Can't provision instance with Basic Networking in v1.2.0 - works on 1.1.0 and 1.0.0 HOT 3
- network_ids should be ignored when network_type is set to Basic HOT 3
- allow nfs mounting HOT 3
- Travis build is failing HOT 1
- Public port is not used by communicator
- When provisioning extra disk, it should be removed when destroying VM
- New release? HOT 3
- Deduplicate code in read_[ssh|winrm|rdp]_info
- Option to use affinity groups for dedicated clusters missing HOT 1
- When destroying VM, inspect (non-) successful job return
- When destroying VM, don't break if additional disk cannot be found HOT 1
- Make vagrant-cloudstack able to run in (Docker) container
- Provide human readable error when `sync_resource` cannot sync name->id
- Write Short and Simple Units of Code
- Write Code Once
- size in deployVirtualMachine is not supported
- "Can't specify network Ids in Basic zone" without any network id given
- unable to list networks unless projectid is also sent.
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 vagrant-cloudstack.